Animate actions
Actions available in the action table of Animate tasks (Assembly and Transform).
SubName List = list of pieces of layer names separated by commas (
shadow,mask). Prof = depth inside clips, from 1 to 99.
Layers
| Action | Parameters | Effect | Example |
|---|---|---|---|
| Change Layer Type from name | SubName List; newType; Prof | Changes the type of the layers whose name contains one of the pieces | shadow,mask → guide |
| Add prefix on layer | SubName List; Prefix; Prof | Adds a prefix to the layer names | shadow → prefix X_ |
| Lock layer | SubName List; true/false; Prof | Locks or unlocks layers (RegExp accepted) | shadow,ma.* |
Special Process
Global processing on the whole scene. Choose the process in the first parameter.
| Process | Parameters | Effect |
|---|---|---|
| shadows2BW | – | Extracts shadows: colours with alpha become opaque white, the others opaque black. |
| hideShadows | – | Removes shadows: colours with alpha become fully transparent black. |
| setFillColor | colour #RRGGBBAA | Replaces the colours with this one. E.g. #FF000088 = half-transparent red. |
| setStrokeWidth | width (default 1); scale type (default none) | Changes the width of all strokes. |
- shadows2BW, hideShadows and setFillColor only process fills and brushes, not lines or gradients.
- setStrokeWidth with a width of 0 removes the lines.
Scale types for setStrokeWidth:
| Value | The stroke width… |
|---|---|
none | stays constant, whatever the object's scale |
normal | follows the X and Y scale |
horizontal | follows the X scale only |
vertical | follows the Y scale only |
Other actions
| Action | Parameters | Effect |
|---|---|---|
| Break All Elements | – | Breaks apart all the elements of the scene (drawing groups). Can take several hours on a large scene. |
| VBS Command Script | Windows Title; Command; Loop; Windows Exit Title | Watches for a window to open and sends it keystrokes (see below). |
| Open Dialog Box | Windows Title | Opens a window in Animate, for example to trigger a VBS Command Script. |