script (MEL) |
Only available in MEL |
getNextFreeMultiIndexForSource |
In categories: Effects, nDynamics |
Go to: Synopsis. Return value. MEL examples.
getNextFreeMultiIndexForSource
This returns the next multi index that's available
for the given source plug. This is the same
as getNextFreeMultiIndex, but we assume the
attr is a source plug, not destination. This command is useful when
connecting nodes where one wishes to connect to the first available multi
on a node, i.e. the first element that is not already connected.
None
Arguments
Variable Name |
Variable Type |
Description |
$attr | string | the name of the multi attribute to get the free index for
|
$start | int | the first index to check from ( use zero if last index is not known )
|
createNode nucleus;
int $index = getNextFreeMultiIndexForSource( "nucleus1.outputObjects", 0 );