🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • About Mysql and Ruby (it's working)

    2
    0 Votes
    2 Posts
    717 Views
    Chris FullmerC
    Ooohhh, this looks good! too.....many....cool.....projects, .....not................enough....time.......in...the..............day. <chris dies>
  • How to use Geom::Transformation.rotation?

    5
    0 Votes
    5 Posts
    1k Views
    thomthomT
    @wpd said: Is there any mechanism for feeding back additions and clarifications to the Sketchup documentation? I'd be glad to write something about the meaning of the point and vector arguments and about rotating using the right hand rule. Even a simple example of rotating a line or a face (one that had been written using 45.degrees) would have gone a long way to getting me where I wanted to go much sooner. I second this. Transformations sounded greek to me. Still does. "Translation" does a move..? I'd never have guessed that.
  • Script for Nodes / Vertices to Point (Guidepoint) ???

    4
    0 Votes
    4 Posts
    256 Views
    R
    Hi TIG, I am Ruturaj Patil. from Kolhapur. this Vertex+.rb its really nice Now i am Work really well. Thanks
  • Does the method related long of models or components exist?

    3
    0 Votes
    3 Posts
    118 Views
    W
    @chris fullmer said: Hi winzard, yes you can controol those things. It is all in Transformations. Or if you you just want the z height of something, you can also iterate through all vertices and compare their heights. Take the highest and loset z values and compare them to see how tall the object is. Do the same for lengths. Or you can also get the bounding box of an object and then use the boundingbox methods to get the length and size of the bounding box. More info would help narrow down the best answer, Chris Thanks !The information is great help to me.
  • Is there a plugin that closes faces on curves?

    7
    0 Votes
    7 Posts
    377 Views
    EscapeArtistE
    Got it sorted out. I tried "Loft" but for some reason it wouldn't work on the curves (they were welded), that's why I started looking for the "Curvestitcher" type plugin. I tried welding them and grouping them separately so that there was no interfering geometry, but "loft" didn't work again. Odd, I usually can figure out what I did wrong. To get them to stitch properly I had to select each edge for the curve to be stitched in the same order, i.e. bottom to top, and then weld them. This got the stitcher plugin to do what I needed.
  • Ruby Uninstaller - Is it needed...?

    5
    0 Votes
    5 Posts
    708 Views
    A
    @chris fullmer said: Do you ever turn off any plugins through the extensions list in the preferences menu? Hi Chris, I don't think I have ever turned on the "Google Earth Ocean Modeling" extension. Also, while we're on the subject of the Extensions list, the description of the "Ruby Script Examples" is out of date; in v7 it describes three tools (Draw->Box, Plugins->Cost and Camera->Animations) and omits Point At Center (in contextmenu.rb), linetool.rb, and selection.rb. I suspect Google didn't update it in the v7 release because it would have meant updating all the translation files too, which key their translation entries from the exact English text. If they leave the English alone, nothing breaks and everything is uniformly out of date and the workaround is to "tick every checkbox in the list" to be able to get Point At Center enabled. Myself, I find that sloppy. Understandable, but sloppy. Also, do any of the plugin developers use this feature? Are there any plugins besides the ones Google provides in the installation that actually use this feature? I'm writing an article on how to use it and if anyone already does, I'd like to mention either the developer or their scripts by name.
  • Debugging WebDialogs - View Rendered Source

    4
    0 Votes
    4 Posts
    363 Views
    thomthomT
    @cphillips said: I have had good luck with Firebug lite. http://getfirebug.com/lite.html Ah! Firebug is one of my fav Firefox extensions. This Lite version looks very interesting!
  • (REQ) Zoom to snap

    4
    0 Votes
    4 Posts
    277 Views
    EarthMoverE
    Thanks Escape Artist and TIG. I have zoom to selected and I was looking for a way to zoom to an inference snap.
  • Help plugin Modelur

    7
    0 Votes
    7 Posts
    196 Views
    F
    thanks i have firefox, is correct explorer 7 for win e safari 3.0 or later for mac. Now i try on mac. Flyman
  • WebDialog show_modal on Mac

    3
    0 Votes
    3 Posts
    232 Views
    J
    Thanks Whaat.
  • Component names

    11
    0 Votes
    11 Posts
    321 Views
    chrisglasierC
    @chrisglasier said: I'll get back on it tomorrow. In the meantime thanks for your help. Chris Here's the result: # Lists components and groups (with hidden status) in a scene @dlg.add_action_callback("findComponents") {|d, p| model = Sketchup.active_model entities = model.active_entities a = 0 array = [] entities.each do |entity| if entity.class == Sketchup;;Group || entity.class == Sketchup;;ComponentInstance if entity.layer.visible? array[a] = [] if entity.class == Sketchup;;ComponentInstance array[a][0] = entity.definition.name end if entity.class == Sketchup;;Group array[a][0] = entity.name end array[a][1] = entity.hidden? array[a] = array[a].join(",") a+=1 end #if class end # if visible end #loop array = array.join(";") cmd = "receiveComponents('#{array}');" @dlg.execute_script (cmd) } [image: jrTi_screenMachine04.jpg] Tally ho! Chris
  • Universal Camera

    2
    0 Votes
    2 Posts
    259 Views
    Chris FullmerC
    Yup, that is the film and stage plugin. http://sketchup.google.com/download/previousplugins.html Down about 1/2 the page under "Functionality Enhancement" Once you install it, look for it under "Camera" and choose "Add Camera" or one of the other options, Chris
  • Refresh and stop inside a long routine

    7
    0 Votes
    7 Posts
    288 Views
    TIGT
    Jim's idea of sub-setting works to an extent. See my Roof.rb - it asks for details, makes the roof's form, then displays it with default materials and then asks for materials in a dialog and redisplays it with the materials. It is the user input that causes the pause and the screen to refresh. Using model.start_operation ... model.commit_operation with your clac's might help but it could mean multiple undo's ?
  • Scene maker

    4
    0 Votes
    4 Posts
    576 Views
    chrisglasierC
    @chrisglasier said: I feel quite despondent that I continue to fail to explain namesets adequately but I will soldier on with a good old British stiff upper lip! Chris A couple of members told me privately that taking a look at "Operative content" helped. Thanks ... Chris
  • Are there any .3ds exporters free or paid?

    11
    0 Votes
    11 Posts
    412 Views
    P
    I have found a very good exporter to .lwo: http://www.flay.com/GetDetail.cfm?ID=2362 In fact, I have finally exported to Blender my more complex model. Of course, no textures, it's a work you must do manually later. But it's the best free solution I have ever seen
  • Why can not draw the geometric by the ruby script?

    3
    0 Votes
    3 Posts
    202 Views
    Chris FullmerC
    I'm not sure, it worked for me in both 6 and 7. Are you getting any errors in the ruby console? Chris
  • Editing SU menu

    3
    0 Votes
    3 Posts
    199 Views
    honoluludesktopH
    Thanks, Chris. Now I don't feel too bad about not being able to find it in the API.
  • . color method

    5
    0 Votes
    5 Posts
    243 Views
    TIGT
    For a color it's always = 255 [100% opaque]... there is a color.alpha= method but it's never ever worked, you must set alpha [transparency] for a material itself not material.color e.g. material.alpha=0.4 for 40% opacity will work but the material.color.alpha still reports 255 [100%], if you try to change it, it just does nothing ! So to recap - the fourth item in a SUp material.color array is its alpha [r,g,b,a] but it's not used ! The alpha of the material itself works as a 0 to 1.0, equivalent to % setting of opacity... http://code.google.com/apis/sketchup/docs/ourdoc/color.html
  • [Bug] Groups in ComponentInstances made unique

    3
    0 Votes
    3 Posts
    206 Views
    R
    thnx for the workaround, haven't tried it yet tho.... but gj
  • I have a trouble in the code,and need help.thanks!

    3
    0 Votes
    3 Posts
    150 Views
    W
    Thank you very much!It is greate help to me!

Advertisement