[REQ] repeat last layer assignment
-
Say I manually put some object on hidden layer (Jim's hidden layer),
then the new script would do the same to the objects I hit.
Thanks in advance -
Why not select them all, then use the drop-down layer list from the docked layer-manager to assign the hidden-layer to them - or any other layer you desire for that matter...
-
it's tedious, especially if there are hundreds layers in drop down list and one have to scroll
and try to catch THE layer.
Simple shortcut hit after the desired objects are selected would be so helpful. -
What's the name of the hidden layer ?
Is it always the same ? -
no, the hidden layer name is not constant (in that case I'd use existing uncomfortable put on layer.rb). So repeating the last manual layer assignment would be rather flexible. BTW moving to hiddenlayer is just a local case, I gave it for example.
-
So you want an "assign last used layer to selection" tool...
The problem is how do you find what the last layer that was assigned...
If the tool itself has assigned a layer then it's an easy set/get, but if you use the native tools or another script then how do we know ? Even a layers-observer would be ineffective as that spots changes to layers, we need to watch entities.
An entities-observer that spots changes to each and every entity in the model... and looks to see if their layer has altered, and if so it takes that as the last-assigned layer... might do it, but it seems very cumbersome...
Perhaps a tool in two parts, one to assign a layer [and remember it] and the other to apply that remembered layer to other selected objects...
Sometimes a simple sounding idea is far more complex and convoluted that you at first imagine...
Advertisement