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.
Hi guys, how´s going?
i need a script to move selected objects to a specific layer (in this case, a layer named "**delete"). would be nice if the script create the layer if it does not exist.
Thanks in advance for any help.
macroscript MoveObjectToLayer
category:"miauu"
tooltip:"Move Objs To Layer"
buttonText:"Move Objs To Layer"(
on isEnabled return selection.count > 0
on Execute do(if(LayerManager.getLayerFromName "**delete") == undefined do
layermanager.newLayerFromName "**delete"
layer = LayerManager.getLayerFromName "**delete"for i in selection as arraydo(layer.addNode i)))
macroscript MoveObjectToLayer
category:"miauu"
tooltip:"Move Objs To Layer"
buttonText:"Move Objs To Layer"(
on isEnabled return selection.count > 0
on Execute do(if(LayerManager.getLayerFromName "**delete") == undefined do
layermanager.newLayerFromName "**delete"
layer = LayerManager.getLayerFromName "**delete"for i in selection as arraydo(
layer.addNode i
if i.target != undefined do layer.addNode i.target
)))
Comments
?
Hello.
Is it possible to disable the goals of all cameras in scene in one click?
Thanks!
Glad you like it. :) The
Glad you like it. :)
The script can be optimized, so you can try to do it. :)
Tools and Scripts for Autodesk 3dsMax
I will do
I will do that!
cheers,
Jsrocha
Thanks!
Hey Miauu, thnaks a lot man, that´s exactly what i need!
big, big thanks again!
cheers,
Jsrocha
Try this:
Tools and Scripts for Autodesk 3dsMax
Hello
Please tell me if the selected object is a camera, how to transfer the camera + target without selecting a target?
Thanks.
.
Tools and Scripts for Autodesk 3dsMax
Thank you very much!
Perfect! I like the way the script works.