|
bool | selIsColumn (int selectionIndex) |
| Returns true if the selectionIndex points to a column. More...
|
|
String | selToColumn (int selectionIndex) |
| Converts the selection index to a column. More...
|
|
String | selToNode (int selectionIndex) |
| Converts the selection index to a node. More...
|
|
bool | selIsNode (int selectionIndex) |
| Returns true if the selection index is a node. More...
|
|
bool | layerIsColumn (int layerIndex) |
| Returns true if the layer index is a column. More...
|
|
String | layerToColumn (int layerIndex) |
| Returns the layer as a column, or the empty string if this layer is not a column. More...
|
|
bool | layerIsNode (int layerIndex) |
| Returns true if the layer is a node. More...
|
|
String | layerToNode (int layerIndex) |
| Returns the node associated to the layer, or the empty string if this layer is not a node. More...
|
|
int | selToLayer (int selectionIndex) |
| Converts a selection index to a layer index. More...
|
|
int | parentNodeIndex (int layerIndex) |
| Returns the layer index of the parent node. More...
|
|
bool | isAncestorOf (int parentLayerIndex, int layerIndex) |
| Returns true if the parent layer index is an ancestor of the layer index. More...
|
|
bool | setDisplayToUnconnected () |
| Returns true if the display was set to unconnected. More...
|
|
QScriptValue | getFrameMarker (int layerIndex, int frameNumber) |
| Return an object representing the Timeline Frame Marker at the given frame for the given layer index. More...
|
|
QScriptValue | getAllFrameMarkers (int layerIndex) |
| Return an array of object representing the Timeline Frame Markers for the given layer index. More...
|
|
QScriptValue | filterFrameMarkers (int layerIndex, String markerType) |
| Return an array of object representing the Timeline Frame Markers for the given layer index, with the given type. More...
|
|
int | createFrameMarker (int layerIndex, String markerType, int frameNumber) |
| Creates a Timeline Frame Marker with the given properties. More...
|
|
bool | deleteFrameMarker (int layerIndex, int markerId) |
| Deletes the Timeline Frame Marker with the given id. More...
|
|
bool | moveFrameMarker (int layerIndex, int markerId, int newFrame) |
| Moves a Timeline Frame Marker from it's current frame to the new frame. More...
|
|
bool | changeFrameMarkerType (int layerIndex, int markerId, String markerType) |
| Changes the type of a Timeline Frame Marker. More...
|
|
StringList | frameMarkerTypes () |
| Returns a list of Timeline Frame Marker types. More...
|
|
void | centerOnFrame (int frameNum) |
| Centers the timeline view on the given frame. More...
|
|
The Timeline JavaScript global object. Used to get informations about layers and frames from the Timeline view.
There are two main groups of Timeline functions:
- selToXX: the selection functions work with a selection using the selIdx parameter.
- layerToXX: the layer functions work with Timeline layers using the layerIdx parameter.
The layerIdx and selIdx parameters are used in many of the functions:
- layerIdx: this is an integer that represents the layer in the Timeline. The first layer in the Timeline is considered 0 (zero).
- selIdx: this is an integer that represents the selection in the Timeline. It is a number from 0 to the number of layers selected minus 1.
function printTimelineLayerInformation()
{
{
}
for ( var i = 0; i < numSelLayers; i++ )
{
}
}
int Timeline::createFrameMarker |
( |
int |
layerIndex, |
|
|
String |
markerType, |
|
|
int |
frameNumber |
|
) |
| |
|
slot |
Creates a Timeline Frame Marker with the given properties.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
- Parameters
-
layerIndex | : The layer index in the timeline layer. |
markerType | : The type of frame marker to create. |
frameNumber | : The frame to create the marker on. |
- Returns
- The id of the newly created marker, or -1 if adding the marker failed.
QScriptValue Timeline::filterFrameMarkers |
( |
int |
layerIndex, |
|
|
String |
markerType |
|
) |
| |
|
slot |
Return an array of object representing the Timeline Frame Markers for the given layer index, with the given type.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
- Parameters
-
layerIndex | : The layer index in the timeline layer. |
markerType | : The type of frame marker to filter for. |
- Returns
- An array of objects representing the Timeline Frame Markers.
QScriptValue Timeline::getAllFrameMarkers |
( |
int |
layerIndex | ) |
|
|
slot |
Return an array of object representing the Timeline Frame Markers for the given layer index.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
- Parameters
-
layerIndex | : The layer index in the timeline layer. |
- Returns
- An array of objects representing the Timeline Frame Markers.
QScriptValue Timeline::getFrameMarker |
( |
int |
layerIndex, |
|
|
int |
frameNumber |
|
) |
| |
|
slot |
Return an object representing the Timeline Frame Marker at the given frame for the given layer index.
The object has the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
- Parameters
-
layerIndex | : The layer index in the timeline layer. |
frameNumber | : The frame number. |
- Returns
- An object representing a Timeline Frame Marker.