Go to: Synopsis. Return value. MEL examples.
getChain shapeNodeName
Returns the deformers that deform the given geometry. For example
if we have the following deformer chain created using the "before" ordering
and call getChain("pCubeShape1")
pCubeShape1Orig->bend1->cluster1->pCubeShape1
then this procedure will return three entries:
string[0] = "bend1"
string[1] = "cluster1"
string[2] = "tweak1"
Notes:
- The deformers which deform the shape are the "upstream" deformer nodes.
If you call getChain("pCubeShape1Orig") you get an empty result because
the shape pCubeShape1Orig has no upstream deformers.
- Any chains that are returned will only contain those deformers up to
the closest upstream shape node. Using other ordering modes than "before"
tends to introduce intermediate shape nodes in the chain and you will
subsequently obtain short deformer chains in your queries.
None
Arguments
Variable Name |
Variable Type |
Description |
$shapeNodeName | string | : name of the shape node for which we wish to query the deformer chain for.
|
string $cube[] = `polyCube`;
nonLinear -before -type bend;
select $cube[0];
cluster -before;
getChain( $cube[0] );
// Result: bend1 cluster1 tweak1