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!
    Check out Febhouse | New extensions for Shadow Analysis in SketchUp Download
    TIGT Offline
    • Profile
    • Following 0
    • Followers 13
    • Topics 266
    • Posts 19,853
    • Groups 6

    Posts

    Recent Best Controversial
    • RE: SU6 SKM processing

      I wrote this script a while ago. It was meant for getting 'color-by-layer' colors , but with the right settings it also exports the colors' textures; if you have it pre-set appropriately...

      There might be something in there you can use ? It's a hack but it works...

      If you see my post earlier of today about 'layer colors' you can seen in the associated script how you might use this method to get the model's materials...


      OBJlayercols.txt

      posted in Developers' Forum
      TIGT
      TIG
    • RE: LAYER MANAGER NEW RELEASE

      @didier bur said:

      Hi John,

      1. Save the Current Layer: if you mean save/restore it in/from a layer state, yes.
      2. Save Layer Colors: I wish I could, but layers colors aren't available through ruby 👿

      Regards,

      Re: 2. Here's a way to make a list of layers' RGB colors: ListLayerColors.rb
      http://www.sketchucation.com/forums/scf/viewtopic.php?p=11924#p11924

      posted in Plugins
      TIGT
      TIG
    • RE: Problems while applying Styles

      Try SUp Menu > Window > Preferences Open GL tab. Switch (tick-box) off/on things like hardware acceleration and see what happens...

      posted in Newbie Forum
      TIGT
      TIG
    • [Plugin] List Layers Colors

      ListLayerColors.rb

      Does what it says on the wrapper...PayPalButton


      ListLayerColors.rb

      posted in Plugins
      TIGT
      TIG
    • RE: UI.openURL(executable + params)

      @unknownuser said:

      I have no idea. I am working on XP.

      Thanks anyway.

      Just upgraded to a new PC - Core 2 Quad with 2Gb RAM - but it runs Vista...

      Vista seems to be the problem...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: UI.openURL(executable + params)

      I don't think it's the case or another thought I had was even blank-spaces in paths (tried gsub 20% etc without any change in results).

      It just seems to dislike PDF files - other types - mht, htm, doc, txt et al work OK...

      Is it a setting in Vista ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: UI.openURL(executable + params)

      Any ideas what's causing this glitch ?

      help=Sketchup.find_support_file("RoofHelp.mht","Plugins/")
      #=big file, but works...

      help=Sketchup.find_support_file("RoofHelp.pdf","Plugins/")
      #=small file, but not working ???

      UI.messagebox("ERROR\nRoof Help File NOT found.") if not UI.openURL("file:///"+help)

      On a PC with Vista UI.openURL will open almost any type of file except a PDF ?

      This is delaying my beta issue of Roof.rb as it needs a help file !

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Selecting Entities inside composite Entities

      One you have got a list of a group's edges that have just one face why do you need to select them anyway ? You have them identified by their 'handle' and so you can manipulate them anyway - even when they are 'transformed'... e.g. e.erase! will erase them...

      There seems to be no (easy) way to simulate the 'edit group' command, BUT you can set a shortcut e.g. 'Shift+Ctrl+Alt+G' to the 'edit group menu' item and then use 'win32ole.so' to run the key stroke(s) to make that group active and then edit its entities to make your selection and then close the group using close_active as you suggest... BUT it's pretty convoluted and would be PC dependant ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Selecting Entities inside composite Entities

      You want to select all edges in the model that have just the one face.

      ###First;  sort out basic geometry 
      model=Sketchup.active_model
      ss=model.selection; ss.clear
      entities=model.entities
      entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}
      ###Now;  make a list of all groups and get any oner-edges
      groups=[]; entities.each{|e|groups.push(e) if e.typename=="Group"}
      ###Adds these to the selection.
      groups.each{|g|g.entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}}
      ###Now go through the component definitions and do the same...
      instances=[]; entities.each{|e|instances.push(e) if e.typename=="ComponentInstance"}
      instances.each{|i|i.definition.entities.each{|e|ss.add(e) if e.typename=="Edge" and not e.faces[1]}}
      

      You will note that this selects any edges in their 'original' location - rather than the current transformation... If you need that you need to delve into transformations a bit more...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: [Plugin] Unhide ALL (Edges) - Inside Groups / Components ???

      I wrote this 'group_miner' script some time ago. It mines down through into any groups and makes sure that all groups are unique... Put it into your Plugins folder and it auto-runs at start up to ensure that the model is initially 'fixed'. You can invoke it in any script (remember to 'require' it if needed BUT it's a short bit of code to copy/paste inside any script anyway)... OR just type 'group_miner(Sketchup.active_model.entities)' to repeat the process 'live'...


      ~group_glitch_fixer.rb

      posted in Plugins
      TIGT
      TIG
    • RE: Spiral ramping form

      http://www.crai.archi.fr/rubylibrarydepot/ruby/em_sel_page.htm

      Grow works on any platform...

      Didier's site has LOTS of goodies...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: PROBLEM W/ INTERSECTING ROOF PLANES

      Start off to one side, away from everything else... Make an extruded rectangle the size of the stair tower over sized vertically, as a group. Make two large rectangular faces, as groups, and move and rotate these to about where you want the roof to be. Explode all three groups and group back as one group, Edit this group. Select all of its faces and intersect them 'with selection': the two roof rectangles will cut through the tower. Delete the unwanted bits and you now have the form you want. Add dividing lines etc and move/pushpull to get you final desired forms...

      posted in Newbie Forum
      TIGT
      TIG
    • 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
    • 1 / 1