ScriptInterface:CreateNewLayer(layerType, undoable)

Version added: before 9.5

Creates a new layer, inserts it directly above the currently selected layer in the Layers window, and makes it the selected layer

ArgumentTypeDescriptionDefaultVer
layerTypeint32A layer type code. See Layer_Type constants< 9.5
undoableboolAdded in version 10true10

Return type (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.
String "CreateNewLayer" is found in the following scripts:

SS - Add Warp Layer (by simplsam)

WP Import from Spine JSON (by wigglepixel)

SS - Number Sequence (by simplsam)

MR Path (by eugenebabich)

Cut Points to new Layer (by Lukas)

See all...