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
MoveMask
Moves the selection boundaries or its content (pixels).
app.command.MoveMask {
target='boundaries' | 'content',
wrap=false,
direction='left' | 'right' | 'up' | 'down',
units='pixel',
quantity=1
}
-
target
(string): must be'boundaries'
to modify selection boundaries onlyor'content'
to modify the selection content (active cel pixels)
wrap
:true
orfalse
, when true it does the Edit > Shift effect, were pixels from one side in will appear from the other side (so the content is shifted and pixels wrapped, so the selection boundaries is not moved at all, only pixels inside it)-
direction
(string): the selection will be moved to a specific direction:'left'
'right'
'up'
'down'
-
units
(string): must be one of these options (generallypixel
is enough for scripts, and other options are just for UI):'pixel'
'tile-width'
'tile-height'
'zoomed-pixel'
'zoomed-tile-width'
'zoomed-tile-height'
'viewport-width'
'viewport-height'
quantity
: the number ofpixel
s, ortile-width
s, etc. to move the selection to the givendirection
depending on theunits