• Login
sketchucation logo sketchucation
  • Login
πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

Batch delete scenes?

Scheduled Pinned Locked Moved Plugins
7 Posts 3 Posters 426 Views 3 Watching
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.
  • D Offline
    db11
    last edited by 12 Jan 2015, 19:59

    Is there a plugin that will delete all scenes in a model in one shot?

    Thanks.

    1 Reply Last reply Reply Quote 0
    • T Online
      TIG Moderator
      last edited by 12 Jan 2015, 21:09

      One-liner in Ruby Console.

      p=Sketchup.active_model.pages; while p[0]; p.erase(p[0]); end
      

      You work out how to make it into a Plugin...
      It will annoy your users, UNLESS its results are VERY VERY expected...
      It is NOT undo-able !

      TIG

      1 Reply Last reply Reply Quote 0
      • D Offline
        db11
        last edited by 13 Jan 2015, 00:14

        @tig said:

        One-liner in Ruby Console.
        CODE: SELECT ALL
        p=Sketchup.active_model.pages; while p[0]; p.erase(p[0]); end

        Thanks TIG... works perfectly for my purpose!

        @tig said:

        You work out how to make it into a Plugin...
        It will annoy your users, UNLESS its results are VERY VERY expected...
        It is NOT undo-able !

        Thanks for the warning: I made a copy of the file before running the code in the console β€” and the 30 some scenes were all messed up from some origin / scale changes, so nothing worth keeping β€” but I can see how it could easily annoy users with unexpected outcomes.

        I'm neither brave enough nor educated enough in Ruby to attempt making a plugin from it πŸ˜„

        Doug

        1 Reply Last reply Reply Quote 0
        • Y Offline
          yorik1984
          last edited by 13 Jan 2015, 00:19

          http://storage1.static.itmages.ru/i/15/0113/h_1421108773_7523420_ff8e1006ea.jpeg

          1 Reply Last reply Reply Quote 0
          • T Online
            TIG Moderator
            last edited by 13 Jan 2015, 12:11

            scenes.

            To delete all scenes, select the first in the list, hold the Shift key and select the last in the list, they should now all be highlighted, now click the -ve button to remove them... πŸ€“
            No Plugin or code needed... πŸ˜‰

            TIG

            1 Reply Last reply Reply Quote 0
            • D Offline
              db11
              last edited by 13 Jan 2015, 17:50

              @tig said:

              scenes.

              To delete all scenes, select the first in the list, hold the Shift key and select the last in the list, they should now all be highlighted, now click the -ve button to remove them... πŸ€“
              No Plugin or code needed... πŸ˜‰

              Doh!

              Not sure why that didn't occur to me... maybe because I always use the Scenes Manager in thumbnails mode, so didn't see it as a list that could be selected that way. Lame, I know πŸ˜„

              1 Reply Last reply Reply Quote 0
              • T Online
                TIG Moderator
                last edited by 13 Jan 2015, 18:29

                No problem!
                At least you now know two ways to do it πŸ˜„

                TIG

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

                Advertisement