Hello
I'd like to now if somebody could make a speed script to freeze all LAYERS except active layer ON and OFF (with the same script : same hotkey )
Thanks !!! :-)
Forum topic · Scripts Wanted
freeze all but non active layer switch
By titane357 · 2010-09-24
Description
Comments (8)
mxdsa · 2016-08-19
thanks for this!
Anubis · 2010-09-25
Really strange... the macros works fine here (Max2009).
Did you like to make a version without callbacks though?
titane357 · 2010-09-25
hello !
I work with max2011 design... it is perhaps why this don't works... :-(
Yes, if you could just make a version to freeze non active layer, and to unfreeze all layers, I'd be very happy (no problem if there were already frozen layer)
I find that it would be very handy when working for archviz : freeze other layers and not hide them, so we can have guidelines that man can't move or select by error...
Anubis · 2010-09-25
Ok, glad to help, you know ;)
I made new macros version + separate macros for unfreezing all layers, cheers.
Attachments
- freezingnoncurrentlayers03.rar — freezingnoncurrentlayers03.rar378 B
- unfreeze_all_layers01.rar — unfreeze_all_layers01.rar354 B
titane357 · 2010-09-29
Thanks again Anubis !!!
I really enjoy these scripts for archviz.
I add a line so I can freeze all but non selected object layer.
if selection[1] != undefined do
(
selection[1].layer.current=TRUE
(
for i = 0 to LayerManager.count-1 do (LayerManager.getLayer i).isFrozen = on
(LayerManager.current).isFrozen = off
)
)
If that can be usefull for somebody...
titane357 · 2010-09-25
Thanks for answers !
Unfortunaly Insanto I got an error.
Anubis I tested the .mcr and I can freeze all layers except active one BUT
I can't manage (with shift key) to return to original config, even 'by hand'
I can't manage anymore to switch freeze/unfreeze layers....
??.?
Anubis · 2010-09-24
Hi Titane, try attached script, cheers.
Well, 1st version not required any user activity, but not looks to me very flexible because cannot turn off the callback, so I wrote 2nd (macro script) version to can switch on/off the RVCallback function. Enjoy ;)
Attachments
- freezingnoncurrentlayers01.ms — freezingnoncurrentlayers01.ms385 B
- freezingnoncurrentlayers02.rar — freezingnoncurrentlayers02.rar523 B
Graph · 2010-09-24
here you go:
toggles freezing of nodes for every layer except the active one.
(
local curL = LayerManager.current
for i = 0 to layerManager.count-1 where curL != layerManager.getLayer i do
(
local layerNodes = (for i in (refs.dependents (ILayerManager.getLayerObject i)) where isvalidNode i collect i)
layerNodes.isFrozen = not layerNodes[1].isFrozen
)
)