• Login
sketchucation logo sketchucation
  • Login
🤑 30% Off | Artisan 2 on sale until April 30th Buy Now

[Plugin] Explode Group to Layers

Scheduled Pinned Locked Moved Plugins
4 Posts 3 Posters 6.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    TIG Moderator
    last edited by 27 Oct 2010, 08:35

    (c) TIG 2010
    Explodes a Group, BUT unlike built-in .explode method, which puts Exploded Entities that are on 'Layer0' onto the Layer of the original Group, this keeps all of the Exploded Entities' Layers unchanged.
    Usage: explodegroup2layers()
    If no argument is given then the current Selection is used and any Groups in it are processed.
    If an argument is given and it's a Group then that is processed.
    e.g. explodegroup2layers(group)
    If an argument is given and it's an Array then any Groups in that Array are processed.
    e.g. explodegroup2layers([group1,group2,group3])
    Probably most useful inside other tools to keep exploded entities on the expected layers.Put into Plugins folder [or copy code into another tool]...PayPalButton

    TIG

    1 Reply Last reply Reply Quote 0
    • R Online
      Rich O Brien Moderator
      last edited by 27 Oct 2010, 10:53

      This is run via the Ruby Console? Any chance of a little pictorial? I have tried it throught the Console but the second option has my head in a vice

      Download the free D'oh Book for SketchUp

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 27 Oct 2010, 11:15

        Normally you'll just select some groups and type explodegroups2layers in the Console.
        When it's called within another tool you can set it to run on a selection explodegroups2layers() or on one group explodegroups2layers(group) or on an array of groups explodegroups2layers([gp1,gp2,gp3]).
        Most users will use it the first way.
        the optional 'arguments' make it more flexible for use within other tools... 🤓

        TIG

        1 Reply Last reply Reply Quote 0
        • B Offline
          bagatelo
          last edited by 10 Oct 2012, 20:41

          I'm looking for a plugin that creates a new layer for each object in the scene or in the selection, either component or group, without considering subgroups. Has anyone done something like this?

          While the cat's away, the mice will play

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement