Batch delete scenes?
-
Is there a plugin that will delete all scenes in a model in one shot?
Thanks.
-
One-liner in Ruby Console.
p=Sketchup.active_model.pages; while p[0]; p.erase(p[0]); endYou 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 said:
One-liner in Ruby Console.
CODE: SELECT ALL
p=Sketchup.active_model.pages; while p[0]; p.erase(p[0]); endThanks 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
-

-
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 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

-
No problem!
At least you now know two ways to do it
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement