🏒 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Startup Switches

    17
    0 Votes
    17 Posts
    4k Views
    TIGT
    I think that the built-in require_all method doesn't load anything other than *.rb files in the given folder. My snippet in the other thread made it do sub-folders too...
  • Plugins features in 3D World

    6
    0 Votes
    6 Posts
    455 Views
    thomthomT
    hm... that sounds like they might be running into a SU group bug where group.entities.parent sometimes refer to the wrong definition. V-Ray suffered from this, but I found a way to patch it. @unknownuser said: On the other hand if i explode the components and then turn the geometry into groups (actually when i want to do that i go fist inside the component, turn everything there into a group, get out of the component, and just then explode it because it's much moreeee faster exploding components into groups than to geometry) there's no problem. I guess that's maybe because groups are just geometry "grouped" and the components can have much more "properties". From the API point of view groups and component instances both have a ComponentDefiniton, with very little difference.
  • Uninitialized constant

    12
    0 Votes
    12 Posts
    2k Views
    TIGT
    Never knew require_all was built in... require_all("C:\myrubyscriptsdirectory\") You then could easily use it to do subfolders thus: Dir.foreach("C:\myrubyscriptsdirectory\"){|entry|require_all(entry)if FileTest.directory?(entry)}
  • Time Section Help...

    3
    0 Votes
    3 Posts
    206 Views
    T
    Thanks Jim!
  • Custom Attributes

    9
    0 Votes
    9 Posts
    377 Views
    Chris FullmerC
    Try this code. Have your Dynamic component selected, then run this in the web console: model=Sketchup.active_model entities = model.entities sel = model.selection[0] sel.attribute_dictionaries.each do |e| puts "***DICTIONARY NAME***" puts e.name puts "" puts "*****VALUES*****" puts e.values puts "" puts "*****KEYS*****" puts e.keys puts "" end It will output to the Ruby Console, so have that open. That should show you some info. Chris
  • Select Perimeter Edges only

    27
    0 Votes
    27 Posts
    15k Views
    mitcorbM
    Thomthom: If an edge loop selection terminates at a 3 or 5 junction, do you see this as terminating the selection or retaining the selection up to the junction? And thereafter the selection is made edge by edge, adding to the path, or restarting the loop selection without losing what has been selected before. Just some thoughts. How many people model like this, you ask. Because I have some limited experience with Blender, I often think in terms of that workflow (wishing that Sketchup had that versatility) as I model in SU. In my opinion, this loop selection capability (and your current Selection Toys) is at least as important as the Point Merger tool recently developed and Select only Visible. Somewhere out there is the Grand Unified Modeling Program....or GUMP for short. (edit: add small chuckle)
  • Problem with Kerkythea exporter

    8
    0 Votes
    8 Posts
    638 Views
    charly2008C
    Dear Tomasz, thanks for the fast reply. The result of ENV['PATH'] is nil. Sorry that i not mentioned my system. I'm working with a PC and WIN XP SP3. I tried SU2KT Version 3.0 ,3.05 and 3.1 beta. Below the messages which are shown when i Started export in SU6/7. Karlheinz [image: aa6s_Bild2.jpg] [image: vEDh_Bild4.jpg]
  • A better select tool?

    2
    0 Votes
    2 Posts
    188 Views
    R
    Fred06 has a plugin called hoverselect, i tihnk it does what you want. Do a search of the ruby forum and see if its what your looking for.
  • Unicode, UTF8 and Ruby

    19
    0 Votes
    19 Posts
    3k Views
    TIGT
    file_found?(path) that fixes ascii in SUp Ruby path and unicode in returned filepath returning false negatives with 'FileTest.exist?(path)' - even with accented characters - is updated and moved here... http://forums.sketchucation.com/viewtopic.php?p=169225#p169225
  • File class chokes on Norwegian Characters :(

    8
    0 Votes
    8 Posts
    815 Views
    TIGT
    I've updated my file_found?(path) code here http://forums.sketchucation.com/viewtopic.php?p=169225#p169225 ...
  • Animator.rb - Call for participation

    19
    0 Votes
    19 Posts
    3k Views
    pilouP
    And Jim has made some crazzy animationstests
  • Web Dialogs with Google Gears

    12
    0 Votes
    12 Posts
    346 Views
    V
    I think you could do what you are asking Chris, with a minor modification. You would need to have the user perform a prior install of a script to enable to communication with the web service, but then once it was installed, that is all they would need. From then on, all scripts could be downloaded, and managed at run time from the database. In that you could store the scripts as either simple strings, and pass them to the ruby engine at run time to be executed, or maybe you could even store them as blobs in the DB and then execute them as a full script. I am not sure about the blob idea, in theory it could work, but in practice there might be hiccups along the way....but the managing them as simple strings that get passed around should work. As I go through this exercise over the next few weeks / months, I will keep you posted. If anyone out there wants to play a little and be a part of this, by all means, let me know... there is more than enough work to go around Obviously my catalog specific stuff I wouldn't be open to sharing, but anything generic like methods supporting gears, and or dynamic script loading from the db would be awesome to give back.
  • Using the SDK?

    14
    0 Votes
    14 Posts
    531 Views
    Chris FullmerC
    Oh good, I think that is a good idea. It does sound like you need to be working in Ruby. Feel free to start a new thread if you get stuck. I've probably said it before, but I'm saying it again: I've written two tutorials on getting started with Ruby. I made them because getting started writing ruby was a frustrating process for me. So I'm hoping this will get people started easier. #1 Getting Started Writing a Full Script Chris
  • Mirror tool

    4
    0 Votes
    4 Posts
    363 Views
    CadFatherC
    Hi TIG, that is true - i was thinking it would be fab not having to turn into 3d view to do it.. Takesh, thanks for clarifying - i wonder if the script 'knows' the view plane, perhaps it would behave in '2d mode'
  • Can i lock the toolbar?

    4
    0 Votes
    4 Posts
    268 Views
    TIGT
    http://forums.sketchucation.com/viewtopic.php?p=159685#p159685 has a PC based registry hack to save and reload toolbars... It works - I use it. You need to edit some of the example files for v7; it works in Vista too... You could also change it to only save toolbar stuff...
  • Adding Item To Sub-Menu?

    2
    0 Votes
    2 Posts
    151 Views
    Chris FullmerC
    http://code.google.com/apis/sketchup/docs/ourdoc/menu.html#add_submenu plugins_menu = UI.menu("Plugins") submenu = plugins_menu.add_submenu("Test") submenu.add_item("Plugin Name") { plugin_method } That should do the trick. It gets a little trickier if you want to multiple different plugins to the same sub-menu, but its possible. I use a global variable, but Jim showed me a way to do it without the global. Chris
  • Question/Request - Is there a way to Filter Layers' ...

    5
    0 Votes
    5 Posts
    188 Views
    pilouP
    Seems Didier Bur has made a big plug about that Layers Manager
  • Simple Loft tool from Chris Fullmer

    4
    0 Votes
    4 Posts
    715 Views
    pilouP
    another video
  • Odd results from Soap Skin Bubble

    19
    0 Votes
    19 Posts
    1k Views
    ToboboT
    Thank you Pilou. It is a complex shape and to get the curves and presures you need to divide it up. maybe I should invest in Sub/smooth.
  • Camera As an Object

    31
    0 Votes
    31 Posts
    1k Views
    halroachH
    It would even be nicer if the 'render area' which is defined in maxwell render would be preserved in the different cameras from film and stage... I think we could definitely use a new and easier to use film and stage plugin!

Advertisement