Go to: Related nodes. Attributes.
This node provides a way to control a large set of boolean attributes. In it's simplest form, this node passes each boolean input to its corresponding boolean output.
If inLevel[0] is true, then output[0] will be true.polyCube; move -r 2 0 0; polyCone; move -r 4 0 0; polySphere; move -r 6 0 0; polyCylinder; move -r 8 0 0; createNode chooser; connectAttr chooser1.output[0] pCube1.visibility; connectAttr chooser1.output[1] pCone1.visibility; connectAttr chooser1.output[2] pSphere1.visibility; connectAttr chooser1.output[3] pCylinder1.visibility; int $num = `getAttr -size chooser1.output`; /* Initialize this multi attribute to match the output attribute Initialize to 0 means the input attr will be passed to the output */ for( $i = 0 ; $i < $num; $i ++ ) { setAttr chooser1.displayLevel[$i] 0; } /* Make all objects visible by setting the inLevel attribute. */ for( $i = 0 ; $i < $num; $i ++ ) { setAttr chooser1.inLevel[$i] 1; } /* Make all objects invisible */ for( $i = 0 ; $i < $num; $i ++ ) { setAttr chooser1.inLevel[$i] 0; } /* Make every other object invisible */ for( $i = 0 ; $i < $num; $i ++ ) { if( $i % 2 == 0 ) setAttr chooser1.inLevel[$i] 0; else setAttr chooser1.inLevel[$i] 1; }
Node name | Parents | Classification | MFn type | Compatible function sets |
---|---|---|---|---|
chooser | node | utility/scalar | kChooser | kBase kNamedObject kDependencyNode kChooser |
plusMinusAverage, reverse, vectorProduct, choice, blend, blendTwoAttr, blendWeighted, blendDevice
Long name (short name) | Type | Default | Flags | ||
---|---|---|---|---|---|
inLevel
(il ) |
bool | false | |||
|
|||||
displayLevel
(dl ) |
enum | 0 | |||
|
|||||
output
(o ) |
bool | false | |||
|