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]); 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 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
Advertisement