- 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
Site
This is an object that saves the active state of the editor in a specific moment. Which active sprite, layer, frame, cel, image, etc. where in a specific moment.
If you save the object:
local site = app.site
The site
object will not be updated if the active sprite is
modified.
Site.sprite
Gets the active sprite at the time the site object was created.
Site.layer
Gets the active layer at the time the site object was created.
Site.cel
Gets the active cel at the time the site object was created.
Site.frame
Gets the active frame at the time the site object was created.
Site.frameNumber
Gets the active frame number (an integer value, 1 is the first frame).
Same as app.site.frame.frameNumber
.
Site.image
Gets the active image at the time the site object was created.