🏢 PlaceMaker | 25% off for February including new Google Earth data imports! Learn more
  • Model.import fails to import dwg's

    2
    0 Votes
    2 Posts
    398 Views
    J
    Alright, the error popped up because of an error in the file path (fileone or filetwo in the code). Silly mistake made frustrating by a misleading error message. However, I have these observations: model.import and model.export have a second parameter which suppresses the summary window. This works exporting, and importing skp files, but does not suppress the summary for dwg files. So the user must click on the OK button for every file which is imported. model.save does not function as the application's file:saveas command, in that the open skp file does not assume the name of the saved file. model.save functions more like file:save a copy as. These two points, along with the lack of a method to close a file (have I missed it?) makes automating any sort of batch processing difficult. Perhaps its intentional, but it limiting for a scripting language.
  • [Question] Ray cast a png

    14
    0 Votes
    14 Posts
    720 Views
    CadFatherC
    so although you can see through the transparent area of the image, you cannot access any info or get behind the scenes on how that is achieved.. last conceptual gasps before giving up then.. can ruby recognize image colour? (i think i can answer my own question in the negative) could a ruby trace a line stroke (something like Didier's 'strokefield generator' if you know what i mean?) lastly, (big chance) could a ruby script recognise/import an ai/svg file? PS already tried the svg plugin but it's buggy (crashes and for some reason it messes up sandbox tools) (promise i give up after this)
  • Divide Curves

    13
    0 Votes
    13 Posts
    3k Views
    AnssiA
    I would also like more control of the segment lenght of the Freehand tool, either beforehand or after drawing. Anssi
  • Ruby working units?

    2
    0 Votes
    2 Posts
    207 Views
    W
    SketchUp's internal units are all in inches. If you prefer to work in meters, just add '.m' after every number. http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Numeric.html
  • Bugsplat Upon Opening

    4
    0 Votes
    4 Posts
    318 Views
    CadFatherC
    i see, in these cases i always start from scratch - if you want, you can download my rubyset. it is a collection of many plugins (for pc but may work on mac) - maybe you'd find it useful. http://www.quarr-it.com look in resources (i'm also working on an updated set coming out sometime 'soon')
  • Balustrade components

    10
    0 Votes
    10 Posts
    2k Views
    rodrigonotorR
    Work now! I think maybe a old version of balustrade.rb is installed in my plugins folder, erase and install balustrade_components.rb and work fine, more later I will try a test whit the component option. Thank you for this great plugin. Saludos [image: 2lfn_balustrade.jpg]
  • Layer Manager Problem

    3
    0 Votes
    3 Posts
    306 Views
    S
    that did it! Thanks. I'm sure I must have messed it up somehow.
  • About 'intersect_with' method

    8
    0 Votes
    8 Posts
    2k Views
    EdsonE
    didier, my mouth was watery after i saw the animation! i wish you find a way of making it public. it would be a success, for sure. congratulations.
  • Context menu Submenu

    12
    0 Votes
    12 Posts
    2k Views
    R
    @tony bombata said: question - does organizer work with encrypted scripts? Yes and no. It will load encrypted scripts, but the script's menu location won't change unless the author has adopted the Organizer menu code (it's very easy, but no one seems to want to do it).
  • [HowTo?] Find Instance parent's Instances

    6
    0 Votes
    6 Posts
    445 Views
    M
    That is exactly what I was looking for ! Thank you Marcio Obs: A new documentation for SU7 Ruby APIs could be nice. It could be a kind of open Wiki so we all could help improve it, as write documentation is ... boring.
  • Math functions and SU7

    3
    0 Votes
    3 Posts
    438 Views
    M
    Without "include Math" statement (directly from Ruby's console or from any autoloaded plugin), it does not work here. With "Math included", it works fine. Marcio
  • The best

    3
    0 Votes
    3 Posts
    584 Views
    C
    Thanks David that was very helpful
  • Rotate a texture

    9
    0 Votes
    9 Posts
    2k Views
    thomthomT
    I'm working on mirroring the texture and UV mapping of front faces to the backside. Anyone got any idea on how to do that?
  • Randomise textures

    6
    0 Votes
    6 Posts
    611 Views
    thomthomT
    Well, ... I just dived into SU ruby because I wanted to create a ruby that mirrored the texture from the front side of faces to the back side of faces. I've been digging in the docs to try to work out how to position textures. I only managed to position a texture in 2d reliably. Even then I'm not sure I'm 100% sure what's happening. I haven't managed at all to get any info from the front face UV co-ordinates that makes any sense. I had hoped that I'd find some good info on this forum. But seeing that the general consensus on SU Ruby texture mapping is confusion I'm now worried to what task I've let myself into. I'd like to try to prompt some of the SU dev team to shed some light to this matter of UV coordinates.
  • [IDEA] Fish skin

    6
    0 Votes
    6 Posts
    1k Views
    S
    Yes it is better to displace it in rendering process. But if you wish to present it in SU than modelling becomes an option. It would be very nice to have kind of populate script to work within given/chosen surface (including curved). One would be able to choose other surfaces/shapes to populate with. I supose one need to have some parameters; ie density (how much the shapes are allowed to overlap if any) and how do you treat intersection with given surface....Probably it would be useful to have "try again" if one is not happy with solution. It might be plugin already which can do this, or not.
  • Windows and Mac...are the Ruby the same for both?

    8
    0 Votes
    8 Posts
    591 Views
    C
    Thanks for everyones input. I'll pass it on to my friend.
  • WebDialogs: To sub-class or not?

    3
    0 Votes
    3 Posts
    284 Views
    A
    a) subclassing and instancing b) instancing If you only need a window to display information, b) would do it. But if your dialog is more complex, subclassing seems to be a good choice, because you can let your class do a lot of things, i.e. generating the HTML by overriding the original set_html method: class AzubyDialog < UI;;WebDialog private def generate_html arg s = '' # TODO; implement your HTML generator code s end public def set_html arg super(arg.kind_of?(String) ? arg ; generate_html(arg)) end end azuby
  • Ruby challenge 2 ?

    18
    0 Votes
    18 Posts
    2k Views
    M
    WHOA, So I have to give a try to the free versionof SU7, but, I think my computer will begin to say ARRGHH... (quite old... )
  • Help with Copy Along Path....

    13
    0 Votes
    13 Posts
    596 Views
    C
    Done in 4 pcs.... [image: ZOfu_hose.jpg]
  • REQ: ANother camera

    31
    0 Votes
    31 Posts
    2k Views
    O
    hey guys.. you think that i'm crazy??

Advertisement