Sketchucation Tools 5.0.7 | Licensing improvements and bug fixes Learn More

Subcategories

  • No decscription available

    20 Topics
    462 Posts
    HornOxxH
    @pilou said: More appetizing in chocolate! Eggs are good as well - but only very fragile when falling down in SketchyPhysics
  • Closing open groups via Ruby?

    15
    0 Votes
    15 Posts
    2k Views
    tt_suT
    @dacastror said: @thomthom said: In SU2014, yes. What would be the best way to write this for Sketchup 8 or 2013? (google translator) In SU8 and SU2013 and older that method is bugged. No known workaround I'm afraid.
  • View > Animation > Play?

    3
    0 Votes
    3 Posts
    446 Views
    J
    Yeah, that should work. Thank you.
  • Weird behavior with EntitiesObserver

    5
    0 Votes
    5 Posts
    468 Views
    R
    Hi Guys, Thanks for the replies. I wanted to do the way I described, cause that way the user could use any tool available to him. But, as it turns out, this seems undoable. I ended up creating my own line tool that would do what I wanted.
  • Count instances correctly

    3
    0 Votes
    3 Posts
    397 Views
    D
    Thanks Dan, this can give me a hint, I'm testing with the definition given there, but in my testing model (instances.skp) gives me a wrong number of instances, sometimes less or sometimes more, I do not know if I'm misapplying the definition count_instances () # you must have a selected instance def count_instances() num = 0 if @editpath.size == 1 i = @editpath.last else revpath = @editpath.reverse i = revpath.shift end if i.is_a?(Sketchup;;ComponentInstance) num = i.definition.instances.size elsif i.is_a?(Sketchup;;Group) num = i.entities.parent.instances.size end if @editpath.size > 1 revpath.each {|i| if i.is_a?(Sketchup;;ComponentInstance) num = num * i.definition.instances.size elsif i.is_a?(Sketchup;;Group) num = num * i.entities.parent.instances.size end } end return num end mod = Sketchup.active_model sel = mod.selection ruta = mod.active_path (ruta) ? (ruta[ruta.size] = sel[0]) ; (ruta = []; ruta[0] = sel[0]) @editpath = ruta count_instances()
  • Fooling the EW?

    6
    0 Votes
    6 Posts
    539 Views
    fredo6F
    In my case, LibFredo6 is registered as a true extension. If you disable it from the Extension Dialog box, then all my scripts relying on LibFredo6 will be disabled. I do agree that SU should provide some built-in support for scripts relying on a common library as this becomes more frequent: managed the requirement of the Lib possibly check its version for compatibility Fredo PS: I wonder why there is a field requirement when you upload a plugin, but it is not displayed in the PS tool browser window.
  • [Code] encapsulate instance into group

    2
    0 Votes
    2 Posts
    415 Views
    Dan RathbunD
    Updated (2014-03-16) to copy properties of old instance to the new one.
  • Create groups of instances correctly

    8
    0 Votes
    8 Posts
    615 Views
    Dan RathbunD
    @dacastror said: ... Dan, but I think you need to add the following properties; material, attribute_dictionaries, layer, description, entity_name, name, receives_shadows, casts_shadows I wonder if there are more properties that can be inherited by the new instance (google translator) Yes you are correct. Just before the old instance is deleted, it's properties need to be copied over to the new instance.
  • REQ export plugin Sketchup to Trainsimulator (please help)

    5
    0 Votes
    5 Posts
    2k Views
    deaneauD
    hi dan, this is a special IGS format what needed by the game
  • Storing Geometry

    8
    0 Votes
    8 Posts
    664 Views
    G
    Thankyou - this will be a good read! I currently test on SU 7, SU 8, SU 2013 and SU 2014. The work around is easy enough.
  • Optimization Tips

    110
    0 Votes
    110 Posts
    192k Views
    tt_suT
    Either that or we get the old blog up and running and link more extensive info from the docs to these longer pieces of info. Or some wiki thing. We still working on getting a better system up. Got a long list of topics to clarify.
  • Page UpDate problems

    5
    0 Votes
    5 Posts
    349 Views
    Dan RathbunD
    As I recall from the last build cycle (2013,) the Sketchup::Page and Sketchup::Pages classes had issues filed on them regarding updates not working correctly. (As well as a bunch of feature addtions, by myself.)
  • SketchUp and OSX Mavericks....

    83
    0 Votes
    83 Posts
    16k Views
    mariochaM
    2014 Sticky palettes are back !!! Now how about bringing back thumbnail icon of SkUp files in Finder. Was there up to v8. So practical. Anyway very happy with v2014. Full congrats to the SU team !
  • [SU2014] character encodings and the Ruby console

    10
    0 Votes
    10 Posts
    648 Views
    OricAtmosO
    Thanks, that might come in handy!
  • Webdialogs for SketchUp ......RIP!

    55
    0 Votes
    55 Posts
    6k Views
    L
    I checked your extensions to invoker c#from ruby at https://github.com/icehuli/suWpfExt. I used to use win32ole to invoke my c# extensions. But since SU2014 and ruby 2.0I could not get anything up and running yet, either icehuli extension or my win32ole calls...
  • Storing and Retrieving Models in the 3D Warehouse

    2
    0 Votes
    2 Posts
    299 Views
    Dan RathbunD
    Al.. I PM'd you an idea.
  • SketchUp 2014 ruby code issue?

    6
    0 Votes
    6 Posts
    530 Views
    T
    @tig said: Never include a space between the method and the opening parenthesis that is enclosing its argument[s]... I was going to tattoo that statement on my arm, but my Wife wont let me. Regardless, I have often wondered what goes through the mind of those that write computer languages. What fantasy world do they live in? It would not be very easy to read a sentence without spaces between words, would it?
  • Transform axes

    6
    0 Votes
    6 Posts
    404 Views
    TIGT
    By default a texture's 'grain' always follows that axis, so your make-the-parts-rotated_and_then-rotate-them-into-place method is a winner. I think in your case it's the best approach... However, FYI you could also change the orientation of a texture for certain faces 'in code' - just like you might when using the manual 'Texture' tool - from the context-menu when a textured face is selected. I [and others] have written several UV / Texture tools - which move, scale and rotate textures - look at their code for ways to transform some UVs and then apply them to a face.material.texture... http://sketchucation.com/pluginstore?pln=TextureRandomizer http://sketchucation.com/pluginstore?pln=TIG-TextureTools
  • How to disabled or Grayed some field in Input box

    10
    0 Votes
    10 Posts
    840 Views
    Dan RathbunD
    Who cares? The second one is not the format given in the API dictionary. Use the first one.
  • Question on =begin and =end

    3
    0 Votes
    3 Posts
    386 Views
    L
    @jim said: Correct, Ruby does not process the lines between. They are typically used for block comments. And if used, the equal sign must be the first character in the line (no whitespace.) Thank you for the answer. that helps me understand a bit more of ruby scripting
  • Guid

    3
    0 Votes
    3 Posts
    463 Views
    K
    Thanks.

Advertisement