Skip to main content

Create Fade Mask Advanced

KJNodes/masking/generate
CreateFadeMaskAdvanced

Create 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

JSON 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

NameTypeStatusConstraintsDefault
points_stringSTRINGrequired-"0:(0.0), 7:(1.0), 15:(0.0) "
invertBOOLEANrequired-false
framesINTrequiredmin: 2, max: 10000, step: 116
widthINTrequiredmin: 1, max: 4096, step: 1512
heightINTrequiredmin: 1, max: 4096, step: 1512
interpolationENUM
6 options
  • linear
  • ease_in
  • ease_out
  • ease_in_out
  • none
  • default_to_black
required--

Outputs

IndexNameTypeIs ListConnection Reference
0MASKMASKNo["{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]
Was this page helpful?