ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
  • V6 Downloadable Ruby Help?

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

    4
    0 Votes
    4 Posts
    888 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
    977 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
    811 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
    960 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
    883 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
    741 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
    2k 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]
  • Is disabling menu items and or tools possible?

    7
    0 Votes
    7 Posts
    2k Views
    A
    For me this code works with the additional line. I put it to a .rb file, load Sketchup, try to use Plugins > Cornflakes > Add mild, it is grayed, I open a .skp file and try the same and get my breakfest. azuby
  • Loading error on align and Align_2d script with XP Professio

    2
    0 Votes
    2 Posts
    723 Views
    A
    I can't help you in that case, but a "compile" error on Ruby scripts? Should be an "Interpreter error" Try to check the Ruby versions. Type to the Ruby Console: VERSION # or RUBY_VERSION azuby
  • PayPal - SDK for Ruby

    3
    0 Votes
    3 Posts
    1k Views
    N
    Tom, Of course PayPal has SDK for Ruby. Download it and try it. PayPal's Ruby SDK Thanks, -Jim- -=-=-=-=-=-=-=-=- Attention Developers! Make up to $1000 per referral with PayPal's [url=https://www.paypal.com/cgi-bin/webscr?cmd=_web-referrals-mrb-outside] Merchant Referral Bonus[/url] Want to accept credit cards online? Visit PayPal [url=https://www.paypal.com/us/cgi-bin/webscr?cmd=_merchant-outside]Merchant Services[/url] for [url=https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside]online payment processing[/url] made easy. Now offering Payflow payment gateway solution - online credit card processing with fraud protection, recurring billing, and other payment services to work with your shopping cart and internet merchant account. Developer Resources: PayPal Integration Center, PayPal Developer Network, PayPal Developer Blog [phpwizard01]

Advertisement