sketchucation logo sketchucation
    • Login
    1. Home
    2. chrisglasier
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 103
    • Posts 1,031
    • Groups 2

    Posts

    Recent Best Controversial
    • RE: Double rotations

      Sorry to bump this but I have a feeling I've missed something fundamental. In this clip I want to see how many baths I can fit into a given space (20' container) using a regular configuration. The problem comes for me when I need the ruby to turn each product through two rotations - in this case both Z and Y. I am sure there is a simple solution ...

      [flash=425,344:9y9do5xj]http://www.youtube.com/v/ql6j84Vw_9o[/flash:9y9do5xj]

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • Double rotations

      Here is a clip showing two rotations - the first around the z axis, the second the y axis.
      [flash=425,344:15gx62mn]http://www.youtube.com/v/kzs7IqroD6E[/flash:15gx62mn]
      The first rotation obviously gets lost because the script that gets the component file only deals with one axis. Here's the relevant bit of the ruby:

      
      
      @dlg.add_action_callback("find") {|d, p|
      a= p.split(",")
      	
      subDir ="Components/NamesetComponents/"
      fileName = a[0]+".skp"
            
      model = Sketchup.active_model
      entities = model.active_entities
      	
      theX = Integer(a[1]).mm
      theY= Integer(a[2]).mm
      theZ = Integer(a[3]).mm
          
      point = Geom;;Point3d.new theX,theY,theZ
      txyz = Geom;;Transformation.new point
               
      path = Sketchup.find_support_file fileName, subDir
            
      definitions = model.definitions
      componentdefinition = definitions.load path
      instance = entities.add_instance componentdefinition, txyz
      		
      theDegrees = Integer(a[4]).degrees
      theAxis = a[5]
      	
      rv = Geom;;Vector3d.new(0,0,1) if theAxis == "z"
      rv = Geom;;Vector3d.new(0,1,0) if theAxis == "y"
      rv = Geom;;Vector3d.new(1,0,0) if theAxis == "x"
      	
      tr = Geom;;Transformation.rotation(Geom;;Point3d.new(instance.bounds.center), rv, theDegrees)
      	
      instance.transform! tr   }
      
      
      

      Any help gratefully received!

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Animation help needed

      Thanks alpmeadow but it has to be non-proprietary.

      Chris

      posted in SketchUp Discussions
      chrisglasierC
      chrisglasier
    • Animation help needed

      Here is a quick clip just to give an idea of the functionality of what I am doing.

      [flash=425,344:3h09j66w]http://www.youtube.com/v/cBDihpeXkFQ[/flash:3h09j66w]

      If anyone knows of a tested non-proprietary solution that would be much better than continuing to build from scratch.

      Other than that I know Gaieus likes to watch insane sanitaryware.

      Happy New Year!

      Chris

      posted in SketchUp Discussions sketchup
      chrisglasierC
      chrisglasier
    • RE: Augmented Reality Plug-in for Google Sketch-Up released

      @ross macintosh said:

      ... It seems your postings in this thread are getting lost. It would definitely be cool if your approach to animation (as shown in your video examples) would work while the model was presented as an augmented reality.

      Thanks Ross. Yes I know that my postings get lost here, but really they are only preliminary bits of a comprehensive presentation I want to post early next year. In a seize the moment moment I was excited to find out whether in principle a model could work as you say. My basic idea is to embed objective based applications into everyday life. For example, I like to think an architect's objective is the creation of a building not the creation of a set of drawings. In this case the shorter the route (using Namesets, SU models and perhaps AR) to assemble, analyse and communicate the proposed reality the better.

      Seasons greetings!

      Chris

      posted in Extensions & Applications Discussions
      chrisglasierC
      chrisglasier
    • RE: Augmented Reality Plug-in for Google Sketch-Up released

      @gaieus said:

      ... I even thought you'd go downstairs in that elevator...

      Can you wait a couple of weeks?

      @gaieus said:

      (I saw the other one with the vertical bath tub the other day and funny ideas came to my mind as well)

      I think I should explain that I don't have a sanitaryware fetish, I use its components because they have the most awkward sizes and shapes, have multiple plumbing connections, strange relationships with accessories like toilet roll holders and all have to be fitted into the smallest of spaces. I hope I have made my case (or do you think I'm overcompensating?)

      Chris

      posted in Extensions & Applications Discussions
      chrisglasierC
      chrisglasier
    • RE: Augmented Reality Plug-in for Google Sketch-Up released

      @unknownuser said:

      For what concerns Sketchup, we are studying to which extent Sketchup is compatible with the treatment of animations within our framework ...

      Another quick example to the one posted before in this thread shows animation of a Sketchup component made and controlled by html and javascript in a Sketchup web dialog box: [flash=425,344:3n0xxamk]http://www.youtube.com/v/kDtHvf4wd8w[/flash:3n0xxamk]
      I too would be interested whether there could be any interoperability with ARmedia.

      Chris
      Edit: BTW please note that a number of component instances can move along different paths at different speeds at the same time.

      posted in Extensions & Applications Discussions
      chrisglasierC
      chrisglasier
    • RE: Augmented Reality Plug-in for Google Sketch-Up released

      @jclements said:

      Another reason for SketchUp to develop some core animation tools.

      I'm working on analytical animation that uses Sketchup.
      [flash=425,355:o1ekcidv]http://www.youtube.com/v/BRXGipZH0M4[/flash:o1ekcidv]

      posted in Extensions & Applications Discussions
      chrisglasierC
      chrisglasier
    • RE: Section planes

      How knowledgable! Thanks Gaieus

      posted in Newbie Forum
      chrisglasierC
      chrisglasier
    • Section planes

      These appear sometimes when orbiting, as here:Section planes.gif Would be most grateful to know why and how to stop it.

      Thanks

      Chris

      posted in Newbie Forum sketchup
      chrisglasierC
      chrisglasier
    • RE: Odd(0)=1

      The problem I think is that both zero and infinity can be considered either since the first (odd) index number of an array is always 0. In US and China the ground floor is 1 but its datum is 0 (NB "ground zero"). In these types of situations it can cause some problems.

      Un morceau de pas de quoi

      Chris

      posted in Dynamic Components
      chrisglasierC
      chrisglasier
    • RE: Odd(0)=1

      What's infinity then ...

      posted in Dynamic Components
      chrisglasierC
      chrisglasier
    • RE: Transformation array

      @jim said:

      What does your human interface look like for editing the rotation of an object?

      Thanks, Jim. Yes the idea is to make namesets and Sketchup work together both ways.

      xyz DEC 7.gif
      Rotation FEB 7.gif
      (Edit: I should also say that components move on confirm)

      The input boxes for xyz's and rotation are populated at start up from a csv record (turned into an array) and can be edited and values returned to the array. The call backs in the ruby look like this:

      
      theX = Integer(a[1]).mm
      theY= Integer(a[2]).mm
      theZ = Integer(a[3]).mm
          
      point = Geom;;Point3d.new theX,theY,theZ
      txyz = Geom;;Transformation.new point
      
      #Courtesy of Jim Foltz
      
      theDegrees = Integer(a[4]).degrees
      theAxis = a[5]
      	
      rv = Geom;;Vector3d.new(0,0,1) if theAxis == "z"
      rv = Geom;;Vector3d.new(0,1,0) if theAxis == "y"
      rv = Geom;;Vector3d.new(1,0,0) if theAxis == "x"
      	
      tr = Geom;;Transformation.rotation(Geom;;Point3d.new(instance.bounds.center), rv, theDegrees)
      	
      instance.transform! tr 
      
      
      

      What would be good would be for the same editing to be done with the move and protractor tools. It seems this is a bit like the relationship between tools and the VCB (now sensibly Measurements).

      So, for example, I am now working on animating the distribution of sanitaryware on a building site. In order to set the distribution paths it would be intuitive to click on the destination floor component (rather than a name on a list) and then adjust the route. But then I need the XYZ and rotation to be sent to the js array. The rotation may also be important to turn components to pass through door openings or stack in a material hoist, but maybe not. XYZ's are essential.

      Any further help most gratefully received!

      My regards

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Transformation array

      Thanks, Didier, but it seems I fell at the second hurdle.

      transform3.gif

      I am afraid I'm a bit out of my depth here. I just want to be able to click on a group or component and have it send its index, xyz and rotation to a javascript array. The index part I can do, so I would be very grateful for any further help with the rest.

      My regards

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • Transformation array

      Please could someone tell me where to find out what these numbers represent in this array.transform.gif

      Thanks

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Generating invisible component mystery

      @jim said:

      Chris, look for it in the Outliner window.

      Thanks Jim, but I suddenly realised that SU might not put elements or components in order with the last on top like HTML. This seems to be true. There was wrong data in a js array but it didn't show up as I expected.

      I see that more people are using web dialogs. I hope this revelation might be helpful for them.

      Thanks again,

      Chris

      posted in SketchUp Discussions
      chrisglasierC
      chrisglasier
    • Generating invisible component mystery

      [flash=425,355:1swxipdj]http://www.youtube.com/v/3RRP0wmhIes[/flash:1swxipdj]

      Most grateful if anyone can see why the component appears in model info but not in display? I have zoomed extents and gone through everything but it still remains a mystery.

      Hopefully

      Chris

      posted in SketchUp Discussions sketchup
      chrisglasierC
      chrisglasier
    • RE: Sketchup game

      @dhruv said:

      1. How can I load different .skp files to my game from webdialogue?(I want to do this cause I dont want to go every time to drop down menu from plugins and load the map)

      Not truly professional I'm sure but this works

      
      
      #RUBY
      @dlg.add_action_callback("load") {|d, p|
      	a= p.split(",")
      	
      	subDir ="Components/NamesetComponents/"
      	fileName = a[0]+".skp"
            
      	model = Sketchup.active_model
      	entities = model.active_entities
      	
      	theX = Integer(a[1]).mm
      	theY= Integer(a[2]).mm
      	theZ = Integer(a[3]).mm
          
      	point = Geom;;Point3d.new theX,theY,theZ
      	txyz = Geom;;Transformation.new point
               
               path = Sketchup.find_support_file fileName, subDir
            
      	definitions = model.definitions
      	componentdefinition = definitions.load path
      	instance = entities.add_instance componentdefinition, txyz
      		
      	theDegrees = Integer(a[4]).degrees
      	theAxis = a[5]
      	
      	rv = Geom;;Vector3d.new(0,0,1) if theAxis == "z"
      	rv = Geom;;Vector3d.new(0,1,0) if theAxis == "y"
      	rv = Geom;;Vector3d.new(1,0,0) if theAxis == "x"
      	
      	tr = Geom;;Transformation.rotation(Geom;;Point3d.new(instance.bounds.center), rv, theDegrees)
      	
      	instance.transform! tr   }
      
      //JAVASCRIPT
      
      function loadSkpFile(){
      
      param = new Array(theFile,theX,theY,theZ,rz,theAxis)
      
      param = param.join(",")
      
      window.location.href = 'skp;load@'+param     }  
      

      @dhruv said:

      1. How can I open a web - browser by left clicking on the model? (Something like onclick function from maybe dynamic components)

      As I understand it, you can do it with a selection observer, but I haven't figured out the code for that.

      Hope this is useful.

      Chris

      posted in Developers' Forum
      chrisglasierC
      chrisglasier
    • RE: Possible to import DC attribute values?

      Correct link is this:
      http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14299

      Sorry

      Chris

      posted in Dynamic Components
      chrisglasierC
      chrisglasier
    • RE: Possible to import DC attribute values?

      @marksolberg said:

      ... Basically I would like to use Sketchup to visualize performance data.

      Anything useful here:

      http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=14299 ?

      or on my web site (click button on left). I am interested in the versatility of import/export with webdialogs, so please let me know what you think.

      Chris

      edit: corrected link

      posted in Dynamic Components
      chrisglasierC
      chrisglasier
    • 1
    • 2
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 47 / 52