Skip to main content

Create Fade Mask

KJNodes/deprecated
CreateFadeMask

Example

JSON Example
{
  "class_type": "CreateFadeMask",
  "inputs": {
    "invert": false,
    "frames": 2,
    "width": 256,
    "height": 256,
    "interpolation": "linear",
    "start_level": 1,
    "midpoint_level": 0.5,
    "end_level": 0,
    "midpoint_frame": 0
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
invertBOOLEANrequired-false
framesINTrequiredmin: 2, max: 10000, step: 12
widthINTrequiredmin: 16, max: 4096, step: 1256
heightINTrequiredmin: 16, max: 4096, step: 1256
interpolationENUM
4 options
  • linear
  • ease_in
  • ease_out
  • ease_in_out
required--
start_levelFLOATrequiredmin: 0, max: 1, step: 0.011
midpoint_levelFLOATrequiredmin: 0, max: 1, step: 0.010.5
end_levelFLOATrequiredmin: 0, max: 1, step: 0.010
midpoint_frameINTrequiredmin: 0, max: 4096, step: 10

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 CreateFadeMask 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?