Community
3ds Max Forum
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hide all layers toggle

6 REPLIES 6
Reply
Message 1 of 7
I_Megaman_i
1639 Views, 6 Replies

Hide all layers toggle

Hey

 

I cant find this particular function: http://prntscr.com/nytrci of scene explorer to assign it to a hotkey. Does anyone know a script with a similar action maybe? or point me please to where can I find it inside 3ds max 2017.

 

Thanks!

6 REPLIES 6
Message 2 of 7
Swordslayer
in reply to: I_Megaman_i

Here's a macro to do that (toggles the layers visibility based on the visibility of the current layer):

 

macroScript toggleAllLayers
	category:"Shortcuts"
	tooltip:"Toggle All Layers"
	buttonText:"Toggle All Layers"
(
	fn setLayersState state =
		for i = 0 to LayerManager.count - 1 do (LayerManager.getLayer i).on = state

	on execute do setLayersState (not LayerManager.current.on)
)

You can copy-paste it into the Script Editor and press Ctrl+E, should appear in the Shortcuts category in Customize UI dialog.

Message 3 of 7
I_Megaman_i
in reply to: Swordslayer


@Swordslayer wrote:

Here's a macro to do that (toggles the layers visibility based on the visibility of the current layer):

 

macroScript toggleAllLayers
	category:"Shortcuts"
	tooltip:"Toggle All Layers"
	buttonText:"Toggle All Layers"
(
	fn setLayersState state =
		for i = 0 to LayerManager.count - 1 do (LayerManager.getLayer i).on = state

	on execute do setLayersState (not LayerManager.current.on)
)

You can copy-paste it into the Script Editor and press Ctrl+E, should appear in the Shortcuts category in Customize UI dialog.


Thanks! 

Do you know if theres a "Hide Unselected Layers Toggle" function in 3ds also? That one would be even better.

Message 4 of 7
rendermaster
in reply to: I_Megaman_i

Do you know if theres a "Hide Unselected Layers Toggle" function in 3ds also? That one would be even better."

 

try this: http://www.scriptspot.com/3ds-max/scripts/layiso-layoff-layon

 


Ronel Katigbak Pabico

3D Generalist / Animator / Renderer/ Graphics Designer

Autodesk Student Ambassador Platinum
YouTube Channel l Linked l Facebook l Blogs

Message 5 of 7
I_Megaman_i
in reply to: rendermaster


@rendermaster wrote:

Do you know if theres a "Hide Unselected Layers Toggle" function in 3ds also? That one would be even better."

 

try this: http://www.scriptspot.com/3ds-max/scripts/layiso-layoff-layon


Already tried that. Doesnt work in 2017. Theres another one which is also broken: http://www.scriptspot.com/3ds-max/scripts/easy-layers-control

Message 6 of 7
rendermaster
in reply to: I_Megaman_i

it does work for me...both scripts

 

 

 


Ronel Katigbak Pabico

3D Generalist / Animator / Renderer/ Graphics Designer

Autodesk Student Ambassador Platinum
YouTube Channel l Linked l Facebook l Blogs

Message 7 of 7
I_Megaman_i
in reply to: rendermaster


@rendermaster wrote:

it does work for me...both scripts


Well of course it does, because you dont have nested layers in your scene. If you start building a hierarchy both scripts stop working as intended. Thanks for trying to help though.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report