/
getGaps

getGaps

Description

Retrieves an array of all the gap ranges on a node. Each gap takes up two elements in the array, for the start and end frame of the gap. Thus, the array size is twice the number of gaps on the node.

Functional area

Data retrieval

Command syntax

Syntax

getGaps node [-any] [-rot] [-sort] [-noFeedback]

Arguments

NameTypeRequiredComments
nodeNamestringyesNode to get gap ranges for.

Flags

NameFlag argumentsArgument typeExclusive toComments
any0Specifies that a gap can exist on any of the sub channels. The default is that the gap must exist on all sub channels.
rot0Specifies that the rotation channel be searched for gaps. The default is to search on the translation channel.
sort0Specifies that the gap ranges be sorted in ascending order of gap size. The default is to leave the gap ranges in chronological order.
noFeedback0

Return value

integer array

Examples

// Get all the gaps on the RFWT.
int $gaps[]; 
int $i, $count;
 
// Get all the gaps.
$gaps = `getGaps "RFWT"`;
 
// Print out their sizes.
$count = `getCount $gaps`;
for( $i = 0; 
     $i < $count; 
     $i += 2 )
        { 
           print int( $gaps[$i+1] - $gaps[$i] + 1 );
}

Additional information

Related commands