🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Request - digital watercolor engine

    8
    0 Votes
    8 Posts
    641 Views
    majidM
    dear mates ...I havn't poblished the process yet...so if you are interested to do a co-work plz email me at : majid - ye ga negi (at) yah... com so that i could share you the process
  • Fbx export options

    2
    0 Votes
    2 Posts
    157 Views
    J
    Hi Rob, All we can go by is the API docs - which say nothing about being able to specify options on exporting. It just doesn't appear to be supported. http://code.google.com/apis/sketchup/docs/ourdoc/model.html#export
  • Having trouble ending a simple script

    3
    0 Votes
    3 Posts
    170 Views
    B
    Chris, Thanks so much for the help, the revised script works beautifully. Proof positive that I was and still am in way over my head. Rob
  • Multiple Action Callbacks?

    5
    0 Votes
    5 Posts
    331 Views
    M
    @jim said: One technique I have used is to pass the name of the Ruby callback to the Javascript. In many cases, you can use a single Javascript function to call any number of Ruby callbacks. Neat trick, and that tells me exactly what I wanted to know. Now where to we go to get the docs to say "add one or more callbacks ..."?
  • Hide components panel on close

    6
    0 Votes
    6 Posts
    253 Views
    AdamBA
    @chris fullmer said: It has to be put into a class and you have to instantiate the class as a tool. And you also have to attach an observer to the Sketchup object. Check out the full example in the introduction paragraph on that page. It shows better how to use it in context. Chris Apart from onQuit is broken on Mac OSX which is annoying. Also be aware that these "stuff has finished / been deleted" generally get invoked after the fact so don't expect to get useful info from the objects in question. Adam
  • Dialog with Webdialog

    12
    0 Votes
    12 Posts
    524 Views
    M
    @rickw said: If you give all your form fields an ID, you can reference them in ruby without relying on the info passed in the callback. In fact, there are times I don't pass any data in the callback itself, instead using dialog.get_element_value("myfield") to access the information I need. I only pass the info through the callback if the info is limited to one data set, and then only occasionally. Excellent tip. Thanks.
  • Loading a Material from SKM

    6
    0 Votes
    6 Posts
    878 Views
    F
    Even better: Found the defintions.load method that will load the model into the list of definitions which then loads the materials.
  • Apply transformations to nested DC components

    2
    0 Votes
    2 Posts
    142 Views
    TIGT
    You need to keep applying ' parent.transformation' to it... If it's being edited the ' model.edit_tranform' helps...
  • Scale Feature to fool Sketchup and Operator

    4
    0 Votes
    4 Posts
    329 Views
    mitcorbM
    Ok, Thanks Chris. Of course that is not the answer I wanted to see, considering all of the possibilities that have arisen in this forum. But, you never know...
  • Google Example Plugin Box.rb

    2
    0 Votes
    2 Posts
    271 Views
    S
    I also just found this page that might help. http://code.google.com/apis/sketchup/docs/ourdoc/material.html
  • What is the best way to find the type of an entity

    12
    0 Votes
    12 Posts
    1k Views
    thomthomT
    Think I need to look over my scripts again. Review the ruby code.
  • Locking The Components Panel To The Side

    8
    0 Votes
    8 Posts
    248 Views
    Chris FullmerC
    I like that you had to come back and refute your own statement Jim Chris
  • Exploding Using Ruby Script

    9
    0 Votes
    9 Posts
    2k Views
    S
    @tig said: Sorry - I made a typo, try this... there was loose ) after entities ! Sketchup.active_model.active_entities.each{|e|e.explode if e.class==Sketchup::ComponentInstance} wewt! thanks man that worked a dream. ive spent so long on this thanks
  • Sutool 2009

    2
    0 Votes
    2 Posts
    816 Views
    I
    See here.. http://sketchuplinks.blogspot.com/2009/04/suntools.html
  • Getting the Current Date with SketchUp Ruby API

    3
    0 Votes
    3 Posts
    906 Views
    TIGT
    Built into core Ruby already... Time.now etc, see Ruby http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_c_time.html et al...
  • Wrong menu text when it contains forward slashes

    9
    0 Votes
    9 Posts
    1k Views
    T
    I'm glad they fixed it. I remember reporting it as a bug some time ago.
  • Blog Post re JavaScript/Ruby Data Sharing

    2
    0 Votes
    2 Posts
    131 Views
    M
    There is a link to this blog post in the WebDialog docs, but the link is broken. Is this an appropriate place for an item like this?
  • Layers Order

    13
    0 Votes
    13 Posts
    526 Views
    M
    @chris fullmer said: So if you ever hit sort by color, it will be on that next time you open SU. Beautiful! No more confusion here, I was sorted by color (whatever that means). Now I'm sorted by name, as everyone has been saying.
  • Oscar Boolean plugin

    7
    0 Votes
    7 Posts
    2k Views
    mitcorbM
    Well, Pilou: My version of this plugin just sits there and I have tried all combos of group, no group, select all, select some, select none and right click select operation. No results. Just for your info. mitcorb
  • Export as 2D DXF in Ruby?

    5
    0 Votes
    5 Posts
    547 Views
    J
    No, it looks like you can do "only" export a 3d model, or write an image from a plugin. Thanks.

Advertisement