ScriptInterface:CreateNewLayer(layerType, undoable)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
layerType int32 A layer type code. See Layer_Type constants < 9.5
undoable bool Added in version 10 true 10.0

Return value:

MohoLayer the new layer
Creates a new layer, inserts it directly above the currently selected layer in the Layers window, and makes it the selected layer.
<< Back to ScriptInterface