User guide

27
API Usage
NodegraphAPI.Flavor
NodeMatchesFlavors( ) Checks to see if a specified node is in a specified flavor, and not in any
specified ignore flavors. Returns a Boolean.
Syntax:
Takes three strings, node type, flavor to match, and ignore flavors. The
node type must be a single string, while flavor, and ignore flavors can be
any sequence of strings. Flavor, and ignore flavors can each also be
None.
NodeMatchesFlavors( 'nodeType', 'matchFlavors', 'ignoreFlavors' )
Examples:
To check if a the node type Merge is in the flavor 3d, but not in the flavor
2d:
NodegraphAPI.Flavor.NodeMatchesFlavor( 'Merge', '3d', '2d' )
Returns True.
To just check if the node type Merge is the the flavor 3d:
NodegraphAPI.Flavor.NodeMatchesFlavor( 'Merge', '3d', None )
Returns True.
To check if the node type Merge is not in the flavor 2d:
NodegraphAPI.Flavor.NodeMatchesFlavors( 'Merge', None, '2d' )
Returns True.
4 CUSTOM NODE COLORS | FLAVOR API