/
getSelectedTimeRanges
getSelectedTimeRanges
Description
Returns an array of integer pairs indicating the current group of selected time ranges.
Use getSelectedTimeRanges when you need to know the details regarding the current in/out time selections in your scene.
Functional area
Data retrieval
Command syntax
Syntax
getSelectedTimeRanges [-noFeedback]
|
Arguments
None
Flags
Name | Flag arguments | Argument type | Exclusive to | Comments |
---|---|---|---|---|
noFeedback
|
0 | — | — | — |
Return value
integer array
Returns an array of integer pairs indicating the current group of selected time ranges.
Examples
int $fSTR[]; $fSTR =`getSelectedTimeRanges`; int $i; int $j = 1; print "Ranges:"; for( $i = 0; $i < (getCount($fSTR)); $i += 2 ) { print $j; $j += 1; print( "in frame " + string ($fSTR [$i] )); print( "out frame " + string($fSTR [$i + 1])); print " "; } // Print a list representing the set of currently selected // time ranges. The list will consist of integers, two // elements for each selected time range found.
Additional information
Related commands
, multiple selections available,