ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • Solved: need help with groups and their names

    6
    0 Votes
    6 Posts
    577 Views
    A
    fantastic - thanks!!! i guess that going through the basics of ruby in SU is inevitable, but doing mash-ups is so much fun
  • Select All Surfaces in a Model? Need assistance.

    10
    0 Votes
    10 Posts
    1k Views
    JClementsJ
    Change the property of these edges so that when their respective faces are delected, the edges remain.
  • Xyz-information...

    6
    0 Votes
    6 Posts
    843 Views
    L
    Wo3Dan, yes, that is obvious. but as I use a lot of cascaded components/groups in my designs, the queryfunction in the tools menu seems to be the easier way to me as I do not have to edit three or more components just to get the xyz-info. However, it's good to know that there are (different) ways one can go...
  • Problem with rotation in a Ruby script

    6
    0 Votes
    6 Posts
    862 Views
    R
    Jim and Didier, Thanks for the help. BR, Ricardo
  • SketchyPhysics fall update.

    16
    0 Votes
    16 Posts
    2k Views
    O
    @cphillips said: @unknownuser said: No takers for coding a Mac version? Too bad, because I want to play, too. Someone is working on the Mac port now. I don't have an ETA yet tho. That is excellent news! Just knowing that it is in the pipeline is very exciting! Thankyouthankyouthankyou!
  • New API Docu incomplete?

    2
    0 Votes
    2 Posts
    630 Views
    Didier BurD
    Hi, The doc you linked to seems rather old (SU5) to me (nothing about observers for instance). BUT the ruby doc has always been (IMHO) crappy, with a lot of errors and voids, not to speak of the examples ! For me it is often a trial-error-trial-error-trial-chance-got it! process EDIT: sorry, there are some infos about observers... but it seems that there is nothing more than in the 'old' doc, if not less
  • Add_text -> always in front?

    2
    0 Votes
    2 Posts
    499 Views
    daikuD
    I've figured out that if you set display_leader to false, or leader_type = none, then you'll get this behavior, where the text will display even if it should be hidden behind an object. Anyone have an idea on how to hide the leader without this happening? CB.
  • Compiled true plugins

    5
    0 Votes
    5 Posts
    928 Views
    W
    finally figured this out. The ruby that ships with leopard is "frameworked" by Apple and linking with it creates plug-ins that will work at the OS level but crash sketchup. I downloaded the regular version of ruby 1.8.6 and installed into usr/local/bin and then changed RUBY_HOME to point to the new one. Now my compiled plugins work with Sketchup on Leopard! Finally I can get back to the hard part of porting sketchyphysics to the mac... Kevin
  • Soap Skin Bubble

    4
    0 Votes
    4 Posts
    1k Views
    G
    This is one of the more comprehensive collection of SSB's capabilities http://groups.google.com/group/Ruby-API/browse_thread/thread/982c56fae94d3537/fececa1a9d219f24?lnk=gst#fececa1a9d219f24. The topmost link will take you to Josef's download site.
  • Contour generation from ruby script

    2
    0 Votes
    2 Posts
    724 Views
    GaieusG
    Arun, this is the depository, please, do not discuss rubies here. The discussion about this script is already here: http://www.sketchucation.com/forums/scf/viewtopic.php?f=127&p=19449#p19449 Didier has just updated his script. Did you make sure that you use the latest release? (The old cloud.rb does not work with SU6). I'm moving this thread now to the general ruby discussion forums but also lock it at the same time so there won't be two threads on the same topic (and Didier does not need to answer in several places to the same questions). I do really hope you don't mind this. Also, please read the announcement about the new board (and startin new topics here). BTW - Didier, could you register there? I want to move your scripts to the new place!
  • How can I store binary data in an attribute

    7
    0 Votes
    7 Posts
    887 Views
    T
    Sounds like a case for a new requirement of the API to be able to handle a BLOB (binary large object). Perhaps a new flavor of an attribute. I'll forward your plea. Todd
  • Keyboard translation PC / Mac

    11
    0 Votes
    11 Posts
    2k Views
    fredo6F
    Thanks very much Todd. There are strange things on the Mac, like the fact that several keys (alphas and numpad) do nt seem to be trapped on the KeyDown, but only on the KeyUp event. This is also the case for Tab, Del and Backspace. This may be due to the VCB interference. I'll see what I can do. Thanks again Fredo
  • Can I tag an object with data and color the object....

    7
    0 Votes
    7 Posts
    580 Views
    R
    Yeah, that can't be done. It would violate the rules of component definitions. Your options: either paint the instance, or make an instance unique (but then you are creating a new definition). Sorry I don't have better news...
  • Web Dialogs and SkIndigo - made for each other...

    13
    0 Votes
    13 Posts
    1k Views
    S
    search for flip4mac @unknownuser said: On a Mac, what Quick Time codec do I need to watch this AVI? I tried DivX and that didn't work. Todd
  • Cloud.rb & non-world origin

    3
    0 Votes
    3 Posts
    714 Views
    M
    Thank you Didier. Yes. That is it exactly. I have a series of XYZ points from an arbitrary "origin" 000. I want to overlay this on a Google Earth terrain, but the centre of the terrain (global origin) is not where I want to have my points origin. Currently, I do a translation in Excel before importing, but this seemed like an interesting way to get into SU Ruby, and save myself some double handling!
  • Support of Language translation - LibTraductor.rb

    6
    0 Votes
    6 Posts
    2k Views
    fredo6F
    It's easy anyway to replicate LangHandler with your own version you control (and anyway a GetString method that takes a default in case the string is not found). My observations were that it's seems that the community of Ruby 'scripters' prefer to avoid proliferation of files and deliver extensions with one or very few files.
  • 2Didier Bur: Extrude lines

    6
    0 Votes
    6 Posts
    913 Views
    F
    Didier, are you KIDDING ME?! THIS TOOL IS A MUST-HAVE for AutoCAD users... I mean I use this thing all the time! If by extrude lines he's talking about the "Extrude lines using 2 Points" tool... or the "Extrude Lines Up" tool... both of which I use many times every day.
  • Erase! gives an error: can't find parent

    13
    0 Votes
    13 Posts
    1k Views
    R
    Standard ruby conversion methods include (but are not limited to): .to_a - convert to an array .to_i - convert to an integer .to_f - convert to a float .to_s - convert to string Though standard ruby, they may not be applicable to all data types. SU adds more .to_n methods: .to_feet - convert a number of inches to feet .to_yard - convert a number of inches to yards .to_mile - convert a number of inches to miles .to_m - convert a number of inches to meters .to_cm - convert a number of inches to centimeters .to_mm - convert a number of inches to millimeters .to_km - convert a number of inches to kilometers .feet - convert a number of feet to inches .yard - convert a number of yards to inches .mile - convert a number of miles to inches .m - convert a number of meters to inches .cm - convert a number of cm to inches .mm - convert a number of mm to inches .km - convert a number of km to inches There are also .inch and .to_inch methods, but since SU internal units are inches, these are almost never used (but are included, I think, for consistency).
  • Select Smooth ruby

    2
    0 Votes
    2 Posts
    689 Views
    F
    workaround for selecting hidden lines: turn off 'view hidden geom' select all items you can see turn on 'view hidden geom' use invert selection ruby script you should now have only hidden geometry selected delete selected hidden lines
  • The colour of a sphere

    7
    0 Votes
    7 Posts
    975 Views
    A
    It's work! You did it! Thank you very much! I appreciate your assistance - it was a good lesson to me. I was so stupid ...

Advertisement