Newb Looking to Create a MaxScript that creates a few layers.

The subject line says it all. I'm looking to make a script that creates a few layers when I press a button. I have enough knowledge to make my own button, but I'm pretty ignorant otherwise. Does anyone know the MaxsScript command for making a new layer and giving it a name?

Thanks in advance, Dan Moyer

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Marco Brunetta's picture

newLayer =

newLayer = LayerManager.newLayer()
newLayer.name = "Pretty Layer"

Pretty much all you need can be found on the MXS reference under LayerManager and LayerProperties.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.