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
|
|
int | current () |
| returns the number of the current frame.
|
|
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.
|
|
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
|
|
void | setCurrent (int frame) |
| allows you to change the current frame
|
|
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::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
-
The documentation for this class was generated from the following file: