With the Frame functions, you can retrieve values from frames and you can add and remove frames in your scene.
More...
#include <frameinterface.h>
|
int | numberOf () |
| returns the number of frames in the scene More...
|
|
int | current () |
| returns the number of the current frame. More...
|
|
bool | insert (int atFrame, int nbFrames) |
| insert: inserts frames at the selected frame number atFrame = 0 -> insert before first frame. atFrame = n -> insert after frame n. atFrame = Application.frame.numberOf() -> insert at end. More...
|
|
bool | remove (int atFrame, int nbFrames) |
| remove: deletes frames starting from the selected frame number. atFrame = 0 -> delete at the beginning atFrame = n -> delete frames following the nth frame atFrame = Application.frame.nbFrames() -> won't delete anything More...
|
|
void | setCurrent (int frame) |
| allows you to change the current frame More...
|
|
|
bool | hasTimelineMarker (int frame) |
| returns if marker exists at this frame More...
|
|
String | timelineMarkerNote (int frame) |
| returns markers text More...
|
|
int | timelineMarkerStart (int frame) |
| returns markers start frame More...
|
|
int | timelineMarkerLength (int frame) |
| returns markers length More...
|
|
With the Frame functions, you can retrieve values from frames and you can add and remove frames in your scene.
You can use it in Script Editor only.
function sceneOpened()
{
newScene();
}
function newScene()
{
d.
title =
"Create New Scene";
nbFrames.label = "Number of Frames";
nbFrames.maximum = 300;
nbFrames.value = 60;
d.add(nbFrames);
if (d.exec())
{
}
}
returns the number of the current frame.
bool frame::hasTimelineMarker |
( |
int |
frame | ) |
|
|
slot |
returns if marker exists at this frame
- Parameters
-
bool frame::insert |
( |
int |
atFrame, |
|
|
int |
nbFrames |
|
) |
| |
|
slot |
insert: inserts frames at the selected frame number atFrame = 0 -> insert before first frame. atFrame = n -> insert after frame n. atFrame = Application.frame.numberOf() -> insert at end.
- Parameters
-
atFrame | frame number at which the frames will be inserted. Frames are inserted after the frame indicated. Use 0 to insert frames before the first frame. |
nbFrames | number of frames to insert |
returns the number of frames in the scene
bool frame::remove |
( |
int |
atFrame, |
|
|
int |
nbFrames |
|
) |
| |
|
slot |
remove: deletes frames starting from the selected frame number. atFrame = 0 -> delete at the beginning atFrame = n -> delete frames following the nth frame atFrame = Application.frame.nbFrames() -> won't delete anything
- Parameters
-
atFrame | frame number at which the frames will be removed. Frames are removed after the frame indicated. Use 0 to remove frames before the first frame. |
nbFrames | number of frames to remove |
void frame::setCurrent |
( |
int |
frame | ) |
|
|
slot |
allows you to change the current frame
- Parameters
-
int frame::timelineMarkerLength |
( |
int |
frame | ) |
|
|
slot |
returns markers length
- Parameters
-
String frame::timelineMarkerNote |
( |
int |
frame | ) |
|
|
slot |
returns markers text
- Parameters
-
int frame::timelineMarkerStart |
( |
int |
frame | ) |
|
|
slot |
returns markers start frame
- Parameters
-
The documentation for this class was generated from the following file: