This command identifies the next gap found in any of the selected modules.
findGap is useful for quickly identifying gaps in a marker or group of markers. Gaps of one or two frames can be very difficult to detect manually and will introduce problems when the data is applied toward a skeletal solution, or imported into another animation package.
The next marker found using this command becomes the primary-selected object.
|Name||Flag arguments||Argument type||Exclusive to||Comments|
|2||integer||—||Selects the time range (including leading and trailing frames expressed as integers) of the gap when a gap is found.|
|0||—||—||Searches for gaps backward in time.|
|0||—||—||Frames the gap in a third the width of the graphView|
|0||—||—||Goes to the first frame of the gap, in the direction that it is searching|
|0||—||—||Query channels independently. With this option Shogun Post will find gaps on independent channels. E.g. Translation X only. Default is to only find gaps if there are gaps on all three channels.|
|0||—||—||Will search selected time ranges, instead of play range|
|0||—||—||Causes it to only search for a gap on the primary selected node.|
|0||—||—||Prevents command from printing to the command log.|
|0||—||—||Find gaps on rotations channels|
findGap -b -select 5 3;
// This example selects the time range of the gap immediately
// preceding the current frame, 5 frames before the gap, and
// 3 frames after the gap will be added to the time range.
// Then, all of the keys within the selected time range will also
// be selected.
// Print the gap range of selected Marker
//select a Marker
int $i = `findGap`;
print $i ;
print $i ;