sketchucation logo sketchucation
    • Login
    1. Home
    2. TIG
    3. Posts
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Urasik Extensions | Lots of new extensions to check out Learn More
    Offline
    • Profile
    • Following 0
    • Followers 13
    • Topics 265
    • Posts 19,821
    • Groups 6

    Posts

    Recent Best Controversial
    • RE: Spiral ramping form

      You could also try my Grow.rb. It lets you do spirals that scale as they grow...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: What is wrong with this script?

      thresh=results[0]

      will work...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Ruby Challenge!

      Tweaking Jim's..

      i=0;Dir["/*/Media/*v"].map{|f|UI.play_sound f;p i+=1,f;sleep 3}
      

      That would be 63... AND it only plays wav files, not falling over on midi's etc... (62 otherwise)

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Shortcuts.rb: how does it work?

      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

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Shortcuts.rb: how does it work?

      Sketchup.get_shortcuts.sort!.each{|s|puts s}

      will put a list of your shortcuts in the Ruby Console both on a PC AND a Mac - you could then copy/paste that into a text file and print it...

      To be a bit cleverer - if you want it to go directly into a file then use:

      filepath="C:/Temp/Shortcuts.txt"; file=File.new(filepath,"w"); Sketchup.get_shortcuts.sort!.each{|s| file.puts s}; file.close

      your make filepath to suit yourself.

      Copy everything from "filepath=" to ".close" and paste it into the Ruby Console, OR you could make a proper ruby script with a menu item - copy some other's methods for this...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Need some roof help.

      Look at http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1519 to get v2.0 of the 'new improved' roof script.

      Incidentally: Bootfredlay's manual tutorial on making a hipped roof [and tomdesk's] is more or less how the Roof.rb hipped roof tool works - but automated !

      posted in Newbie Forum
      TIGT
      TIG
    • RE: Latice-izer - usability query.

      It makes a lattice from a group that's a single plane - faces and edges. The frames can have open or paned centres. All lattice frames are the same width. If you want an exact size make the offset around half of the intended frame width and it'll then expand at its edges to suit. If you want a bigger frame offset than that, then offset it (but less the 1/2 frame) and then group only the inner part. Then lattice-ize, explode the group and it'll merge with the outer frame, pushpull the outer bit to suit erasing coplanar edges etc...

      posted in Plugins
      TIGT
      TIG
    • RE: Face width and height in 2d

      Perhaps you could make a temporary group and add the face into that. Then transform the face so it's flat normal=0,0,1. Rotate it so the longest side is say y=0. Then find the bounding box max/min etc ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Pro or free version

      Sketchup.version and Sketchup.version_number
      Returns the current version number.
      The Current Version of Google SketchUp Pro is:
      6.0.515 for Windows XP, 2000 and Vista
      6.0.514 for Mac OS X 10.4 or later
      BUT it's also that for the Free version ?

      However, since the Free version lacks some features in the Pro one then you can look for their absence ?

      For example:
      is_pro=Sketchup.find_support_file("Skp2Acad.dll","Exporters")
      is_pro is true for Pro and false (nil) for Free...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Mirror.rb blues

      Thanks Burkhard... I had had a bad day... It's at the very least polite to acknowledge the work of others in the headers of the script's text when you are using their code or ideas...

      It would have perhaps been easier to leave my original script alone and then link in you new toolbar/extension parts separately to that ?

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @unknownuser said:

      ctrl+M? wouldn't that = copy?

      No.
      Pressing M and then Ctrl would Move+Copy IF you have M set to Move, but pressing ctrl + M together doesn't (at least not in the Pro version). I only used that key combination as an example !!! You can use any non-reserved key combo: shift+M, alt+M, ctrl+shift+alt+`, shift+spacebar etc etc... the list is only as restricted as your imagination...

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @burkhard said:

      try this one. πŸ˜‰ simple but works

      And I thought Frank Wiesener, and then I did all of the hard work in the last three years developing "Mirror.rb" for you all to use freely.........
      http://suwiki.org/suwiki/index.php?title=Mirror_%28plugin%29
      [but link to old forum is now defunct.]
      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/EM/Mirror_31.rb

      I know it doesn't have a (c) para or an 'acknowledge who done this' para at the start, BUT let's be nice - it's certainly got little that's wholly "Burkhard's"...
      I fully acknowledge Frank's earlier input in my updates, at least you could acknowledge others work that's been included in yours - which quite frankly lifts whole lumps of code direct - you even have my ###v3.1 rem tags in yours...

      Let's stay friends about this... but...

      posted in Plugins
      TIGT
      TIG
    • RE: Mirror.rb blues

      @unknownuser said:

      Is there a hope for this script to have a toolbar button sometime?
      I am using it more and more and find myself hunting for the button too often.

      Thanks.

      So much to do and so little time...

      I have a shortcut key that mirrors selections... even quicker than a button ? (M=move but say ctrl+M=Mirror ?)

      posted in Plugins
      TIGT
      TIG
    • RE: Align face to endpoint script ?

      @dtrarch said:

      How about a script that will align a face perpendicular to the end point of a line segment that may be off axis in 3d?

      This would be a big help when using follow-me for this condition.

      Dave

      My ExtrudeAlongPath, TubeAlongPath and PipeAlongPath scripts all align a face perpendicularly to the start of the selected path... So it shouldn't be difficult (for someone) to pinch the appropriate bits and make your tool... Also Mirror.rb also has methods for copying faces etc and moving them about selected lines/planes etc so all in the bits exist already...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: VolumeCalculator Script - Modification Requests Attn: TIG

      Added to the list...

      [EDIT: Done - for v1.7 see: http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1531]

      posted in Plugins
      TIGT
      TIG
    • RE: Section Edge Display

      New improved version of SectionCutFace.rb is in the depository here...
      http://www.sketchucation.com/forums/scf/viewtopic.php?f=153&t=1517

      posted in Newbie Forum
      TIGT
      TIG
    • RE: Width, Depth and Length of Component Instance

      Even if it's not rectangular you can still find horizontal and vertical faces of an enclosing rectangle for its main faces.

      horizontal>>> face.normal.z==-1 >>>down ...==1 >>>up
      vertical>>> face.normal.z==0

      you can find the bottom down face (faceh), find its edges, then find an edge that matches in the se of vertical faces' edge (if you might have say several vertical faces then find the one with the longer edges if that's the one you need etc...)

      you now have a long bottom face (faceh) and an adjoining vertical face (facev) that's sharing a (long) edge.

      faceh.bounds.max.x-faceh.bounds.min.x and similarly for .y give the plan size (x & y) and facev.bounds.max.z-facev.bounds.min.z give the overall height (z) ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Width, Depth and Length of Component Instance

      If it's a solid faced rectangule then get the bounds of two (or three) of the 3D opposed faces... then you can work out the xyz dims of the object, without resort to it's over all bounds...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Ruby Tutorial: How to create and add a component from Ruby

      Try using groups as an alternative...
      ...
      entities=model.active_entities
      group=entities.add_group
      gents=group.entities
      ...
      gents.add_line(pt1,pt2)
      gents.add_face(pt1,pt2,pt3...)

      etc, all made inside the group NOT model

      then transform group etc

      group1=group.copy
      group1.make_unique

      transform group1 etc

      ...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Ruby Tutorial: How to create and add a component from Ruby

      But the Joist and Rafter tools make a component that is repeatedly copied AND if you subsequently edit one of them then they all change ! If you want parts that are unconnected then use Groups - but make each unique - as I said within a script they can be viewed as clones of the same thing and they'll edit together, but doing an edit in the "real world " has each of them treated as a single entity...

      posted in Developers' Forum
      TIGT
      TIG
    • 1
    • 2
    • 985
    • 986
    • 987
    • 988
    • 989
    • 990
    • 991
    • 992
    • 987 / 992