Nodes/More Math/Mask math
ComfyUI Node

Mask math

A ComfyUI node in More math with 7 inputs and 2 outputs.

By mcDandy·Created about a year ago·Updated about a month ago· 5
Mask math
  • V
  • F
  • Expression
  • stack
  • MASK
  • STACK
length_mismatcherror
batching0
remember_stackfalse
CategoryMore math

Inputs (7)

NameTypeDefaultDescription
VCOMFY_AUTOGROW_V3
FCOMFY_AUTOGROW_V3
ExpressionSTRING,SYNTAX_TREEI0*(1-F0)+I1*F0Expression to apply on input masks
length_mismatchCOMBOerrorHow to handle mismatched mask batch sizes. tile: repeat shorter inputs; error: raise error on mismatch; pad: treat missing frames as zero.
batchingINT0
remember_stackBOOLEANfalseIf enabled, stack is copied at output leading to changes being remembered during batch operations (node runs multiple times in sucession). If disabled each batch gets it's own copy of the stack.
stackoptSTACKAccess stack between nodes

Outputs (2)

NameTypeDescription
MASKMASK
STACKSTACK