Amazon VERSION 2.0V1 Guide de l'utilisateur Page 27

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 264
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 26
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
Vue de la page 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 263 264

Commentaires sur ces manuels

Pas de commentaire