This information is for Vicon Shogun 1.7. For up-to-date help, see the latest Shogun documentation.

Vicon Shogun banner


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


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


nodeNamestringyesNode to get gap ranges for.


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.

Return value

integer array


// 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