ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • One simple thing is remaining ;)

    11
    0 Votes
    11 Posts
    1k Views
    majidM
    ... is there anyone to improve this idea ... iguess how easy it would be to make i.e. trees using such ruby
  • Little trick to find out your desired keycode

    2
    0 Votes
    2 Posts
    457 Views
    A
    no, sorry for causing confusion. this is only helpful when developing tool plugins and you want to use keyboard to control your tool behavior, you need a code of each key so that you can specify what to look for. these codes are nowhere to be found (su ruby api) so only way I found is to run the key discovery tool posted above and pressing keyboard print respective codes to the ruby console.
  • Help needed: drawing_color (all colors)?

    3
    0 Votes
    3 Posts
    401 Views
    A
    I was certain that after trying "darkred" sketchup returned an error, but now the same "darkred" works as expected - thanks!!
  • Bezierspline by fredo6 editing

    4
    0 Votes
    4 Posts
    611 Views
    fredo6F
    @a4chitect said: could someone help me understand why when editing spline sometimes the selecting cursor is a black filled square and sometimes it is an empty square? the filled cursor can't be locked to axes when moving while the empty square can and also snaps to geometry better. I could't recognize any apparent reason why sometimes I get the filled one and sometimes don't. thanks By the way, you seem to use the older version which had bugs about inferences. I have made a correction in the release of January 2008, which is on Crai Depot (see also http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=5429)
  • How to get edge color (and style)

    3
    0 Votes
    3 Posts
    433 Views
    Al HartA
    Thanks for the try Todd, but I found it in our scripts which add edges to renderings and 3D PDFs This is the color I was looking for - in the Styles menu. [image: 7L5K_edge-color.jpg] It is stored in rendering_options["Foreground_Color"]
  • Controlling the view

    4
    0 Votes
    4 Posts
    598 Views
    M
    Hey, Thanks for your suggestions, unfortunately they don't quite meet my needs. Basically I'm building a bunch of different models for different tiles. What's important is that they are all exactly the same size (to the pixel). I need to precisely set the view zoom and camera angles to make sure the sizes always match up. I looked at the ado code, here you rely on "zoom extents" which doesn't work for me. Some of the models fill the whole tile, others are smaller than a tile, if I do zoom extents some things will be too big and others too small. I'm pretty surprised that you can't get precise control over the exact camera view from a script, surely there must be a way? For example I want to set up a camera such that the image represents exactly the rectangle [0,0,0], [0,5,0], [5,5,0], [5,0,0], with a fixed aspect ratio, say w/h = 2. I actually can set the aspect ratio, but I can't find a way to control the zoom (I should mention that I'm using parallel projection, maybe that's related). Thanks again for your help! Matt
  • Wall "cutter" for windows

    15
    0 Votes
    15 Posts
    3k Views
    F
    count me in!
  • [ruby doc] Undocumented ShadowInfo & Rendering Options

    2
    0 Votes
    2 Posts
    514 Views
    Didier BurD
    Hi Al, Most options in Su are handled by hashes. For instance: options=Sketchup.active_model.shadow_info then: options.to_a gives: [["City", "Paris"], ["Country", "France"], ["Dark", 20], ["DayOfYear", 172], ["DaylightSavings", false], ["DisplayNorth", false], ["DisplayOnAllFaces", true], ["DisplayOnGroundPlane", true], ["DisplayShadows", false], ["EdgesCastShadows", false], ["Latitude", 48.867], ["Light", 80], ["Longitude", 2.333], ["NorthAngle", 0.0], ["ShadowTime", Fri Jun 21 15:30:00 Paris, Madrid 2002], ["ShadowTime_time_t", 1024666200], ["SunDirection", Vector3d(-0.149675, -0.420103, 0.895048)], ["SunRise", Fri Jun 21 06:53:33 Paris, Madrid 2002], ["SunRise_time_t", 1024635213], ["SunSet", Fri Jun 21 22:51:25 Paris, Madrid 2002], ["SunSet_time_t", 1024692685], ["TZOffset", 1.0], ["UseSunForAllShading", false]] options.keys return an array of all the options names and options.values an array of all the values associated with each key. All the hashes are contained in: Sketchup.active_model.options For example: optionsmanager[0].to_a gives: [["LengthPrecision", 2], ["LengthFormat", 0], ["LengthUnit", 4], ["LengthSnapEnabled", true], ["LengthSnapLength", 0.393700787401575], ["AnglePrecision", 1], ["AngleSnapEnabled", true], ["SnapAngle", 15.0], ["SuppressUnitsDisplay", false], ["ForceInchDisplay", false]] And so on... all sort of things that I found by myself (and with the help of other rubyists) BUT that Google apparently don't care to document
  • Selecting only Lock Groups

    6
    0 Votes
    6 Posts
    516 Views
    A
    all right, respect. there you go webconsole
  • How to set "use sun for shading"

    2
    0 Votes
    2 Posts
    557 Views
    J
    Here ya go, Al. Sketchup.active_model.shadow_info["UseSunForAllShading"] = true See this thread for more undocumented ShadowInfo options.,
  • Problem using autocenterpoint...

    3
    0 Votes
    3 Posts
    448 Views
    B
    I remove the extension manager and it's work! Thank You!
  • Create polyline

    5
    0 Votes
    5 Posts
    2k Views
    G
    Fredo6's Bezier tool includes a polyline. Does this do what you want? Bob Later: edited to attribute the script correctly (I hope). [image: VYx6_bz.jpg]
  • Missing SketchUp Plugins Folder

    3
    0 Votes
    3 Posts
    1k Views
    T
    For posterity, the proper path is Macintosh HD/Library/Application Support/Google Sketchup 6/SketchUp/Plugins Todd
  • Problème avec projection toolbar V6 (solved)

    5
    0 Votes
    5 Posts
    600 Views
    Didier BurD
    Bjr, @unknownuser said: PS: comment transfert-on un topic? Il faut demander aux mods, on ne peut pas le faire soi-même (sinon tu imagines le b....) Pour ce qui est du conflit, c'est presque normal puisque mon script reprend une classe et des méthodes développées par J. Gall. Tu peux supprimer son script puisque le mien fait pareil. A+
  • Making a group out of everything in a component definition

    6
    0 Votes
    6 Posts
    9k Views
    Al HartA
    I appreciate your trying to help, Susan, but I put this query in the ruby forum because I was soliciting help from other ruby programmers on how best to do this task. It is easy in SketchUp itself, as you point out, although probably even easier than you suggest because you can probably: Open the component for edit Select all the geometry in the component Right click and select Make group and you have the group. My problem is that this is much more difficult in Ruby, unless there is a ruby command for #1 and #3 (there is a one line command for #2) Again, though, thanks for offering your help.
  • Geom::Transformation.rotation

    7
    0 Votes
    7 Posts
    756 Views
    C
    Not realy clear for me yet. If I understand well, that means "transformation" is usefull for add_instance (f.e.) A kind of insert definition transform1 = Geom;;Transformation.new inspoint instance = entities.add_instance componentdefinition, transform1 and "transform!" to modify this instance. instance.transform!(transform2) But I'll get use to it. Thanks both of you for your help.
  • Su2stl seems buged!

    8
    0 Votes
    8 Posts
    871 Views
    pilouP
    hihi comme quoi l'habit ne fait le moine
  • Measuring Gradients???

    4
    0 Votes
    4 Posts
    761 Views
    M
    Hi All thanks for the info... that may well do it,looks perfect. i've had that plug in for ome time but not noticed that option before, many, many thanks all the best matt
  • Ruby to make resizing model easier

    12
    0 Votes
    12 Posts
    1k Views
    OscarLokO
    Hello Jean-Franco It is still under improving! I will keep upload the latest version of the script in youtube(avi file). Regards Oscar
  • Highlight each instance in a selection set

    4
    0 Votes
    4 Posts
    543 Views
    J
    @unknownuser said: Thanks Jim! Once again, you hit the mark. First, I missed the ".collect" and get a bug on sketchup. Have you got any idea what scan order is prefered in the 'do' loop? Any way to sort the collection? Collect is a Ruby method that just makes a copy of the selections in an Array. There isn't any order to the entities returned (that I am aware of.) You'll need to sort them manually, possibly by building another array of only the instances. Then, you'll need to decide what to sort on: definition name, color, position, size?

Advertisement