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!
    โš ๏ธ Important | Libfredo 15.8b introduces important bugfixes for Fredo's Extensions Update
    Offline
    • Profile
    • Following 0
    • Followers 12
    • Topics 264
    • Posts 19,746
    • Groups 6

    Posts

    Recent Best Controversial
    • RE: Purge

      This is a 'Default All Layers' (in selection) script that I've just cobbled together. Please try and report back...


      default_all_layers.rb

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Purge

      @miikka1978 said:

      Is there something similar to RemoveMaterials, which would also delete the materials from the paint bucket (in model- pull down menu)?

      My Purge All could be used (cannibalised) to purge unused materials after they are no longer used when RemoveMaterials has been run...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Purge

      @unknownuser said:

      Thanks Todd, that is what I was searching for. I will try to find the collapse to layer 0 you mentioned.

      Tom, I was looking for a Purge Used script, not Unused ๐Ÿ˜‰
      And the PurgeAll script that TIG attached will purge all unused components, layers, materials, and styles then generate a report. I guess the only difference between the purge unused in the statisitcs and the script is the generated report, correct me guys if I am wrong.

      My Purge All script lets you choose NOT to purge some types e.g. Layers can be left alone whilst everything else is cleaned up...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Purge

      @unknownuser said:

      I know there is a purge all unused ruby:
      http://www.crai.archi.fr/RubyLibraryDepot/Ruby/en_edi_page.htm

      I was wondering if there was a ruby for purging all layers, colors, components, etc... that are being used.

      If not, could it be written? Purge everything to default colors and 0 layer etc...

      This has been around for a while (v6 only)...


      PurgeAll.rb

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Copying Files

      @jim said:

      I'm curious why File.delete is allowed, but File.move and File.copy aren't supported?

      Seems that someone never go around to making them in the Ruby 'base-build'. However here's a script (ftools.rb) to add to your Plugins folder - it adds File.copy .move .mkdirs .compare etc...

      If you use the methods remember that others might not have ftools.rb if you distribute your script...


      ftools.rb

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

      For "visualisation purposes" you could try setting the view display to 'display edge by material', then get the edges' materials saved into a 2-part array, colouring them all say 'Orange' and then as you exit you'd loop back through and change them back to what they were before, and finally you set the view display as it started off ?

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Random Delete?

      Try:
      http://www.sketchucation.com/forums/scf/viewtopic.php?p=12977#p12977
      which links to a Random Delete ruby script. It deletes a percentage of a selection. Percentage is from a dialog... Use with care...

      posted in SketchUp Discussions
      TIGT
      TIG
    • [Plugin] Random Delete

      This script randomly deletes a percentage of selected entities (from a dialog)... Use with care...PayPalButton

      Please get the latest version from the PluginStore http://sketchucation.com/pluginstore?pln=RandomDelete


      RandomDelete.rb

      posted in Plugins
      TIGT
      TIG
    • RE: Settings for area tool

      Here's the Area Formatting script, beta v1.0...
      http://www.sketchucation.com/forums/scf/viewtopic.php?p=12808#p12808

      posted in SketchUp Discussions
      TIGT
      TIG
    • [Plugin] Area Formatting

      This lets you format area text tags with any desired area format... For example you are working in mm but want areas in m2...
      [flash=800,600:268zxfdc]http://www.youtube.com/v/Txue6Jo0DZA[/flash:268zxfdc]
      Before picking the tool off the Plugins|Extensions menu select what you want formatting or let it choose from 'everything' available...
      It converts mm2, cm2, m2, in2 and ft2 into mm2, cm2, m2, hectares, sq in, sq ft, sq yds and acres; all as you might select from the dialog...http://sketchucation.com/resources/pluginstore?pln=AreaFormat

      posted in Plugins
      TIGT
      TIG
    • RE: Hatch script?

      @didier bur said:

      What about SectionCutFace with a hatchy material ?

      Thanks Didier - beat me to it! All you need to do is use my script... then edit the section-cut face group and apply a 'hatched' material to the faces, instead of the color your choose initially...

      posted in Developers' Forum
      TIGT
      TIG
    • RE: Settings for area tool

      Didier has made a Find+Replace text tool script. To use it you'd simply make all of your area texts in the default [meters2] then finally run it to find "meters2" and replace it with "m2".

      See: http://www.crai.archi.fr/RubyLibraryDepot/Ruby/em_tex_page.htm

      Didier's site has LOTS of goodies...

      It's pretty easy to envisage a script that also finds text in the format NNNcentimeters2 and then takes the number divides it by 10000 and adds m2 back on... I'll draft one out and put it on the appropriate board...

      posted in SketchUp Discussions
      TIGT
      TIG
    • RE: Move a vertex

      You can move an Edge's Vertex with Move, as long as nothing is pre-selected - use inferencing and shift-locking to get the end to finish up where you want it to be...

      You can also move an Edge's Vertex by using Scale on the Edge (tip: you need to temporarily draw a scrap bit of new Edge off the side of the one in question, so that it becomes 'Scalable' [then simply delete the scrap bit afterwards and the Edge is back as one piece]; pull the end you want to where you want it be be (tip: draw a construction[guide] line first if there's nothing else to infer to to pull it to).

      You can also change a Selected Edge's length by using 'Entity Info' and typing in a new overall length for it, BUT the Edge must have at least one 'free' Vertex - i.e. one that's not connected to another Edge; also if you want to increase an Edge from its 'start' rather than its 'end' you might also need to Move the whole Edge too...

      posted in Newbie Forum
      TIGT
      TIG
    • 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
    • 1
    • 2
    • 980
    • 981
    • 982
    • 983
    • 984
    • 987
    • 988
    • 982 / 988