ScriptSpot

Forum topic · General Scripting

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

By DanTronMcTronDan · 2009-09-04

Description

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 (1)

Marco Brunetta · 2009-09-05

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

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