Create Fade Mask Advanced
CreateFadeMaskAdvancedCreate a batch of masks interpolated between given frames and values. Uses same syntax as Fizz' BatchValueSchedule. First value is the frame index (not that this starts from 0, not 1) and the second value inside the brackets is the float value of the mask in range 0.0 - 1.0 For example the default values: 0:(0.0) 7:(1.0) 15:(0.0) Would create a mask batch fo 16 frames, starting from black, interpolating with the chosen curve to fully white at the 8th frame, and interpolating from that to fully black at the 16th frame.
Example
{
"class_type": "CreateFadeMaskAdvanced",
"inputs": {
"points_string": "0:(0.0),\n7:(1.0),\n15:(0.0)\n",
"invert": false,
"frames": 16,
"width": 512,
"height": 512,
"interpolation": "linear"
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
points_string | STRING | required | - | "0:(0.0),
7:(1.0),
15:(0.0)
" |
invert | BOOLEAN | required | - | false |
frames | INT | required | min: 2, max: 10000, step: 1 | 16 |
width | INT | required | min: 1, max: 4096, step: 1 | 512 |
height | INT | required | min: 1, max: 4096, step: 1 | 512 |
interpolation | ENUM6 options
| required | - | - |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | MASK | MASK | No | ["{node_id}", 0] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this CreateFadeMaskAdvanced node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
MASK (MASK):["5", 0]