Feedback
- press ENTER to search or ESC to cancel
Table of content
Globals namespaces
Constants
- Align
- AniDir
- BlendMode
- BrushPattern
- BrushType
- ColorMode
- FilterChannels
- Ink
- MouseButton
- MouseCursor
- RangeType
- SelectionMode
- SpriteSheetDataFormat
- SpriteSheetType
- WebSocketMessageType
Classes/objects
- Brush
- Cel
- Color
- ColorSpace
- Dialog
- Editor
- Events
- Frame
- GraphicsContext
- Image
- ImageSpec
- KeyEvent
- Layer
- MouseEvent
- Palette
- Plugin
- Point
- Properties
- Range
- Rectangle
- Selection
- Site
- Size
- Slice
- Sprite
- Tag
- Tile
- Tileset
- Timer
- Tool
- TouchEvent
- Version
- WebSocket
- Window
NewLayer
app.command.NewLayer {
name="",
group=false,
reference=false,
tilemap=false,
gridBounds=Rectangle,
ask=false,
fromFile=false,
fromClipboard=false,
viaCut=false,
viaCopy=false,
top=false,
before=false
}
name
(string): the name of the layer.group
:true
to make the new layer a group layer, this option is mutually exclusive toreference
/tilemap
.reference
:true
to make the new layer a reference layer, this option is mutually exclusive togroup
/tilemap
.tilemap
:true
to make the new layer a tilemap layer, this option is mutually exclusive togroup
/reference
.gridBounds
: a rectangle to specify the tilemap grid by default (instead of using the sprite grid)ask
:true
to ask the user for a name if inside the interface.fromFile
:true
to create the layer from a file, the Open File dialog will appear in the UI.fromClipboard
:true
to create the layer from clipboard image data.viaCut
:true
the selected image data is cut and moved into the new layer.viaCopy
:true
the selected image data is copied into the new layer.top
:true
the newly created layer is placed at the top of the list.before
:true
the newly created layer is placed before the currently active layer; but if false it is placed after.