ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
hello
I'm looking for a script to activate object selected layer.
I mean : I have loads of layers, I want to create an object in the same layer that the selected object , clic a button and voilà, the good layer is active !
Thanks
Here you go. You can either run the code below directly or you can install the macroscript I've attached. You will find it in the "CG_Tools" category named "Current Layer From Selection".
It's a really simple script actually - it just checks the layer property of the currently selected object (if there is a selection) and sets the property "current" to True.
ifselection[1]!= undefined do--Verify there is an object selectedselection[1].layer.current=TRUE--Make the currently selected object's layer the "current" layer
Comments
thank you from me aswell :)
it will help me alot.!
Thank you very much
Thank you very much Christopher !
One line code which will save me a lot of time !!!
Here you go. You can either
Here you go. You can either run the code below directly or you can install the macroscript I've attached. You will find it in the "CG_Tools" category named "Current Layer From Selection".
It's a really simple script actually - it just checks the layer property of the currently selected object (if there is a selection) and sets the property "current" to True.
pleazzz
pleazzz