📷 GIF Exporter 1.1 | create animated GIFs from SketchUp models with customizable settings Download
  • Export SKP to Voxel File

    2
    0 Votes
    2 Posts
    1k Views
    pilouP
    Just for information you have a young 3D prog who use voxel on the Beta 3.0! 3D Coat Link of the thread about Alpha 3.0 version "voxels" Andrew the creator will be glad to speak with you
  • XML Attribute

    8
    0 Votes
    8 Posts
    457 Views
    Didier BurD
    Hi, Why not use Marshall to store/restore very long strings ? This works well to store all kinds of data, even organized as struct objects, in attributes. Look here:http://www.ruby-doc.org/docs/ProgrammingRuby/html/ref_m_marshal.html My 2 cts,
  • Jf_obj_import.rb - doesn't import materials

    5
    0 Votes
    5 Posts
    424 Views
    F
    very very generous offer, Solo! Thanks! I have decided I will just import these furniture pieces in .obj format directly to KT. I will just build some placeholders in SU for my Cam. setup. I can probably convert the objs at home tonight.
  • Component spray troubleshooting

    2
    0 Votes
    2 Posts
    267 Views
    ToboboT
    Hi, I've been using it loads this last two weeks. @messire said: I have an issue using spray rb when using the selection option. I select a face in a bigger face ( any scale from big ( 100x100m) to small ( 10mx10m) and want the components to be "dropped" on that face. With some settings i get the " u are about to add more than xxxx components are u sure"... with some others ( less spray) i get no message but with both nothing happens. Firstly if the % is too low then it will struggle to place components the same if the % is too high. @unknownuser said: With some settings i get the " u are about to add more than xxxx components are u sure"... This just warning saying that it'll take a long time to place the components. I've had to leave the spray running over night. Also it is sometimes better to work in millimetres instead of metres SU copes better. Hope I have helped
  • Link to DirectX Exporter

    8
    0 Votes
    8 Posts
    6k Views
    jujuJ
    Just a pity DE costs an arm and a leg, 2 kidneys and one cornea.
  • HELP with ruby install

    8
    0 Votes
    8 Posts
    470 Views
    TIGT
    @unc5583 said: files look ok... i'm just trying to manually change the name that appears in sketchup You must use a plain text editor [like Notepad.exe] when opening and editing a Ruby (.rb) file. If you use a Wordprocessor it puts hidden binary type characters into the file. Usually it breaks it completely but here you seem to have just made it do weird menu entries. The menu's text entries are almost always given at the end of the script. I suspect that either you or someone beforehand has opened these scripts in a Wordprocessor ! Best to get fresh copies off here or Didier's site... .
  • Ruby scripting repository hosting?

    2
    0 Votes
    2 Posts
    316 Views
    tbdT
    yeah, github is really a nice place for working on a project that is open source (you can have private projects as well). I don't use it for SU Ruby scripts (use smustard.com for it) but I use for other projects and it is really nice. there is also http://gist.github.com/ that you can use for snippets of code that are version controlled
  • Plugin

    20
    0 Votes
    20 Posts
    2k Views
    R
    I think I'll stick to making my spiral stairs in "Datacad" and importing them into sketchup. This works great for me. It includes a handrail, etc.
  • FxRuby and GUI's

    8
    0 Votes
    8 Posts
    885 Views
    W
    Run following code in Sketchup , when I click the button "Quit", The promopte "Quit has been clicked!" can be printed,but dialog does't disappear . It sames that method "exit" for application can't finish the program in Sketchup! But in Ruby 1.8 , it works well. Why? require 'fox16' include Fox application = FXApp.new("Hello", "FoxTest") main = FXMainWindow.new(application, "Hello", nil, nil, DECOR_ALL) a_button=FXButton.new(main, "&Quit!", nil, application, FXApp;;ID_QUIT) a_button.connect(SEL_COMMAND){ p "Quit has been clicked!" application.exit } application.create() main.show(PLACEMENT_SCREEN) application.run() [image: 0fV0_hello.jpg]
  • For all the rubynuts, Take a look at LWCAD 3.0

    13
    0 Votes
    13 Posts
    2k Views
    BurkhardB
    @numerobis said: ...with high poly support noway**....with high poly support**
  • Help with creating an API

    10
    0 Votes
    10 Posts
    2k Views
    fredo6F
    Todd, Sorry for misunderstanding. I was just saying that, while you can or should use exceptions in your own code, you should try to provide 'error-free' API to external programmers, by trapping all problems and documenting the rules and error conventions of your interface. In your example Challenge #2, I just notice that this is what you do, since any call to your GetData() method, will never raise an exception! Fredo PS: I have two small remarks about your code sample, for the Integer?() method: Not a good habit to extend Ruby built-in class. Just imagine I do the same (knowing that the name "integer?" is quite natural) and override your code by mine. Better have a neutral method like Fredo6.Integer?(), so that at least you and me control ownership. I would rather use the following code to transform a string into an integer: def string_to_integer(s) (s && s.strip =~ /\A(\+|\-|\s*)(\s*)(\d*)\Z/) ? ($1.strip + $3).to_i ; nil end This returns the integer number if the string is valid, otherwise nil A more powerful variant allows the user entering mathematical expressions that would normally evaluate to an integer def string_to_integer2(s) return nil if s == nil || s =~ /[^\s\+\-\*\/\%(\)\d]/ begin eval "(#{s}) + 0" rescue Exception => detail nil end end For instance, string_to_integer2("(2 + 3) * 4") will return 20. The only issue with eval() is with security, as eval() could be used to delete files on your disk and other nasty things by accident. Hence, the first line to check that you only have digits with operation signs and parentheses. Fredo
  • Section Cut Face problems!

    6
    0 Votes
    6 Posts
    1k Views
    TIGT
    @chris fullmer said: I'm going to guess its a problem on the EIS scripter's side. But maybe not. I don't know who made that one. Maybe if they are a forum regular they can sit and chat with TIG (did the section cut face, right?). Anyhow, glad its working now! Chris There are a couple of plugins that I know of - both by 'proper developers' - that rewrite certain built-in methods [they don't need to !], which then causes unexpected clashes with other scripts. One I know of is 'Demeter' - this is similar to 'EIS' so perhaps they've got some common 'bad' coding in them... .
  • Script check-->materials

    4
    0 Votes
    4 Posts
    511 Views
    P
    works, thank you very much
  • Exchanging color to texture?

    18
    0 Votes
    18 Posts
    2k Views
    tbdT
    @unknownuser said: How would the RGB way look? a lot more complicated ... you can try to save as png, find the offset inside the file where color is store, pack("m") @unknownuser said: What if the image was bigger say 64x64 pixels? donno. i used 1x1 pixel to keep the file to minimum make a hash of the file that you create via the script to see if it is written properly
  • Clearance plugin?

    9
    0 Votes
    9 Posts
    1k Views
    AdamBA
    @unknownuser said: Adam, can you show me a picture of what you mean for the first case? Todd, 2 objects next to each other: [image: bXJr_SketchUpScreenSnapz005.png] Whats the smallest clearance? ie You can't do this by examining vertices. Typically you'd use GJK to crawl around the surface. But I seem to remember GJK is just for convex hulls - one of the many many reasons physics packages only deal with collections of convex hulls. (its an interesting subject - imagine a tumbling object through space with a protruding part and the incredibly complex path the tip of that protrusion traces.) Adam EDIT: I realized I claimed earlier that convex shapes would be simple.. I meant that with simple interval arithmetic you can find a separating plane etc. Nothing is ever simple..the devil is always in the details!
  • PLUG IN COPY ALONG PATH

    5
    0 Votes
    5 Posts
    3k Views
    ToboboT
    Thanks Dave I was having some trouble with a component you made it all clear
  • Point_in_polygon_2d doesnt work

    2
    0 Votes
    2 Posts
    298 Views
    Didier BurD
    Hi, The error message cannot be the one you're showing: ans=Geom.Point_in_polygon_2d point,points Point_in_polygon_2d is not the name of a method and "point_to_polygon_2D" is in the error message. "in" instead of "to", upcase...
  • Clear the ruby console window mem how to

    5
    0 Votes
    5 Posts
    968 Views
    R
    Also, webDialog callback actions don't get changed if you have persistent instances that call the dialog.
  • Programming cartoon

    2
    0 Votes
    2 Posts
    399 Views
    Didier BurD
    Yeah Was it like this today for you ?
  • Can we got SketchUp API Docs in offline ?

    7
    0 Votes
    7 Posts
    480 Views
    R
    I know this does not answer the question about downloading the API, but it does address david's comment about updates. The Groups Documentation is updated by Todd and myself as we get time and feedback. AFAIK, it is now more accurate than the standard online API documents accessed via the Sketchup Help>Ruby Help link.

Advertisement