sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    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

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

      Thanks.

      1 Reply Last reply Reply Quote 0
      • TIGT Online
        TIG Moderator
        last edited by

        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

          @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
          • yorik1984Y Offline
            yorik1984
            last edited by

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

            1 Reply Last reply Reply Quote 0
            • TIGT Online
              TIG Moderator
              last edited by

              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

                @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
                • TIGT Online
                  TIG Moderator
                  last edited by

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

                  TIG

                  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