Go to: Synopsis. Return value. MEL examples.

Synopsis

getNextFreeMultiIndex

This returns the next multi index that's available for the given destination attribute. 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.

Return value

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 )

MEL examples

  createNode nucleus;
  int $index = getNextFreeMultiIndex( "nucleus1.inputActiveStart", 0 );