πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
  • Pushpull coding problem

    8
    0 Votes
    8 Posts
    1k Views
    Didier BurD
    Hi, The simplest way: arc= model.entities.add_arc([x+@dist, y+@dist, z], vecx, vecz, @d/2, 0, pi/2, @s) line1 = model.entities.add_line([x+@dist, y+@dist, z],[x+@dist, y+@dist+@d/2, z]) line2 = =model.entities.add_line([x+@dist, y+@dist, z],[x+@dist+@d/2, y+@dist, z]) face = model.entities.add_face[arc,line1,line2] face.pushpull @thick Regards,
  • What is wrong with this script?

    9
    0 Votes
    9 Posts
    2k Views
    PixeroP
    Got it working! Thanks for the help. Read more here: http://www.sketchucation.com/scf/viewtopic.php?f=9&t=1986
  • Question About Extension Toolbars

    7
    0 Votes
    7 Posts
    1k Views
    GaieusG
    In my office I have Free SU 6. I can check - unless someone will be faster than me. At home I cannot install Free SU6 for I have Pro and they don't run parallel with each other.
  • V6 Downloadable Ruby Help?

    5
    0 Votes
    5 Posts
    1k Views
    PixeroP
    Thanks.
  • Autosave

    4
    0 Votes
    4 Posts
    911 Views
    BurkhardB
    thanks todd for taking a look on it.
  • Shortcuts.rb: how does it work?

    5
    0 Votes
    5 Posts
    1k Views
    TIGT
    Here's a 'universal solution'... Paste this into a file: (c) TIG 2007, ANY without warranty... BUT you can use it freely... however, it'd be nice NOT to claim it as your own OR at least just to mention me when you do reuse it... To use it: Put it in the Plugins folder... as 'GetShortcuts.txt', and the you can manually load it, when required [load"GetShortcuts.txt"] in the Ruby Console... require 'sketchup' Choose where you want the list to go PICK ONE # ... #filepath=ENV["TEMP"]+"/Shortcuts.txt" ### list's in, =YOUR Temp... #filepath=ENV["TMP"]+"/Shortcuts.txt" ### =YOUR Tmp... filepath="C:/Temp/Shortcuts.txt" ### =SystemTemp (PC) file=File.new(filepath,"w") Sketchup.get_shortcuts.sort!.each{|s|file.puts s} file.close
  • Key sequence in ruby

    10
    0 Votes
    10 Posts
    2k Views
    T
    Oops. Command = 1048576 Alt = 524288 Control = 262144 The Command key, also known as the "apple" key, shown as a ⌘ in the Doc, is the Mac equivalent to the PC's CONTROL key. The control key on a Mac isn't used that often. The ALT key is also named the Option key. Todd
  • Select Visible?

    4
    0 Votes
    4 Posts
    1k Views
    J
    @cphillips said: @jim said: Is there a plugin to select only geometry that can be seen on the screen? Edit: Including the backfaces. Maybe select visible is a bad description. How about select all within the field of view? Cant you just use select and drag across the whole window? That does the same thing. Yes, but wanted to do it using Ruby.
  • Keycode with onKeyUp question

    3
    0 Votes
    3 Posts
    993 Views
    PixeroP
    Thanks! I'll try that.
  • Script icons

    7
    0 Votes
    7 Posts
    1k Views
    CadFatherC
    yes i thought so - was thinking to organise my plugins menu but went up in a ballon... (and thanks for your great plugins)
  • Vector (line) from object to object?

    3
    0 Votes
    3 Posts
    840 Views
    T
    An observer script could be written to "link" objects to accomplish this.
  • Organizer.rb error on sketchupConnector.dll

    7
    0 Votes
    7 Posts
    1k Views
    KrisidiousK
    you're awesome... that trouble script is the foshizzle
  • Is there a way in Ruby to import KML files into SU?

    3
    0 Votes
    3 Posts
    1k Views
    JClementsJ
    I believe so. I believe it can be opened with a standard editor. If I can get a sample file of data points, I will post it here. I'll have to wait until person who creates specific KMLs returns from vacation in 2 weeks.
  • Finding a face's azimuth

    6
    0 Votes
    6 Posts
    2k Views
    R
    The problem is compounded by angles generally being measured counter-clockwise, while azimuth angles are measured clockwise. I think it would come down to determining the quadrant of the vector (by checking X and Y for +/- value), then adding the previous right-angle azimuth vector to the angle_between of it and the specified vector if vector.x>0 if vector.y>0 az = [0,1,0].angle_between(vector).radians else az = [1,0,0].angle_between(vector).radians+Math;;PI/2 end else if vector.y<0 az = [0,-1,0].angle_between(vector).radians+Math;;PI else az = [-1,0,0].angle_between(vector).radians+(3*Math;;PI/2) end The above example doesn't take into account cases where x or y equal zero, so you'll have to add that. It shouldn't be too difficult, though.
  • Face width and height in 2d

    6
    0 Votes
    6 Posts
    999 Views
    R
    It's possible to use vectors to represent axes. The face.normal should be the Z axis, the X axis should be the intersection of a flat (XY) plane with the face plane, and the Y axis can be determined by the cross product of the X and Z axes. There's also a quicker way to do this after finding the Z axis (the face.normal): axes = face.normal.axes xAxis,yAxis,zAxis = axes However you do it, once you have the axis vectors, you can then either: test the X and Y axes against the points of the face to determine which are minimal and maximal, or use an axes transform to convert the vertex positions of the face to the world XYZ coordinates and then determine the minimal and maximal XY values.
  • Align face to endpoint script ?

    3
    0 Votes
    3 Posts
    904 Views
    D
    Hi TIG Your extrude along a path is my bread and butter script for plan development. The core of a copy plan system and tut that I am in process on as we speak. An align_face script would be appreciated by all I am sure and thanks for the get-back. Dave
  • How to test if user is currently using Photomatch?

    3
    0 Votes
    3 Posts
    769 Views
    W
    Thanks, Rick, but that's not really what I am looking for. I'm not trying to test whether the user is editing their photomatch (i.e. adjusting vanishing points, origin, etc.). I just want to know if the user has selected a photomatch scene tab and has not changed the camera view (photo background is still in view). The active tool could be anything (select, linetool, pushpull, etc, I don't care). In other words, I just want to test if the photomatch background is still in view. There doesn't seem to be anything in the RenderingOptions, Page, or Camera classes to help me here.
  • Align a face to a plane ..

    6
    0 Votes
    6 Posts
    3k Views
    P
    OK, here's the workflow to create unfolded sheetmetal parts - create first end of a transition create second end of transition use skin.rb to join the ends delete end faces and tweak surfaces as necessary use JF_unfold.rb to create a flat pattern align flat pattern to xy, xz or yz planes perspective off, select appropriate view, export DXF for profile cutting. Will play around with the Align feature later.
  • Script loading errors

    10
    0 Votes
    10 Posts
    3k Views
    A
    The thing with "between" definitively is an error from the filter_extension extension, it is located in the file filter/geom_selection.rb in line 4. Because the programmers used the evaluation technique, the error is hard to track. So I crawled all the "requires" and decoded them. From the filter_extension.rb you can see who has made the script - F. Rodriguez and Didier Bur. Also have a look on this old (cached) thread For the housebuilder thing look here. azuby
  • Is there any script to get plane align to camera ?

    7
    0 Votes
    7 Posts
    2k Views
    N
    Kris, I find it's a good idea to keep an eye on things in case you try to pull a fast one. -Gully [Gully Foyle]

Advertisement