|
int | currentVersion () |
| returns the ID of the current version. More...
|
|
String | currentVersionName () |
| returns the name or the number of the current scene version. More...
|
|
String | currentEnvironment () |
| returns the name of the current environment. More...
|
|
String | currentJob () |
| returns the name of the current job. More...
|
|
String | currentScene () |
| returns the name of the current scene. More...
|
|
String | currentProjectPath () |
| Return the current project path. More...
|
|
String | currentProjectPathRemapped () |
| For windows, returns the remapped path. More...
|
|
String | tempProjectPath () |
| Return the temporary project path. More...
|
|
String | tempProjectPathRemapped () |
| For windows, returns the remapped temporary project path. More...
|
|
|
Functions will generate only one Undo/Redo entry if sandwiched by these two functions.
|
void | beginUndoRedoAccum (String commandName) |
| This function starts the accumulation of all of the functions between it and the endUndoRedoAccum function as one command that will appear in the undo/redo list. If you do not use this function with endUndoRedoAccum, each function in the script generates a separate undo/redo entry. More...
|
|
void | endUndoRedoAccum () |
| This function ends the accumulation all of the functions between it and the beginUndoRedoAccum function as one command that will appear in the undo/redo list. If you do not use this function with beginUndoRedoAccum, each function in the script generates a separate undo/redo entry. More...
|
|
void | cancelUndoRedoAccum () |
| This function cancels the accumulation of undo/redo commands. No command will be added to the undo/redo list and all commands that have already been executed will be rolled-back (undone). More...
|
|
void | undo (int depth=1) |
| undoes the last n operation. If n is not specified, it will be 1 More...
|
|
void | redo (int depth=1) |
| redoes the last n operation. If n is not specified, it will be 1 More...
|
|
void | clearHistory () |
| Clear command history. More...
|
|
|
double | unitsAspectRatioX () |
| returns the X value of the aspect ratio of the cells in the scene grid. More...
|
|
double | unitsAspectRatioY () |
| returns the Y value of the aspect ratio of the cells in the scene grid. More...
|
|
int | numberOfUnitsX () |
| returns the number of units in the X axis of the scene grid. More...
|
|
int | numberOfUnitsY () |
| returns the number of units in the Y axis of the scene grid. More...
|
|
int | numberOfUnitsZ () |
| returns the number of units in the Z axis of the scene grid. More...
|
|
int | coordAtCenterX () |
| returns the X value of the centre coordinate of the scene grid. More...
|
|
int | coordAtCenterY () |
| returns the Y value of the centre coordinate of the scene grid. More...
|
|
int | currentResolutionX () |
| returns the current preview resolution. For example, when the current resolution is 720x540 pixels this function will return 720. More...
|
|
int | currentResolutionY () |
| returns the current preview resolution. For example, when the current resolution is 720x540 pixels this function will return 540. More...
|
|
String | defaultResolutionName () |
| returns the default resolution name. The resolution name is a global parameter saved with the project. It may be empty when the project is used as a custom resolution, which is not one of the pre-defined resolutions. More...
|
|
int | defaultResolutionX () |
| returns the default resolution. This resolution is a global parameter saved with the project, not the current preview resolution. For example, when the default scene resolution is 720x540 pixels this function will return 720. More...
|
|
int | defaultResolutionY () |
| returns the default resolution. This resolution is a global parameter saved with the project, not the current preview resolution. For example, when the default scene resolution is 720x540 pixels this function will return 540. More...
|
|
double | defaultResolutionFOV () |
| returns the default resolution field of view (FOV). The default FOV is a global scene parameter. More...
|
|
StringList | namedResolutions () |
| returns the list of known resolution More...
|
|
int | namedResolutionX (String name) |
| returns the named resolution. For example, when the named resolution is 720x540 pixels this function will return 720. More...
|
|
int | namedResolutionY (String name) |
| returns the named resolution. For example, when the named resolution is 720x540 pixels this function will return 540. More...
|
|
int | getFrameRate () |
| returns the frame rate, as frame per seconds. More...
|
|
|
bool | saveAll () |
| performs the " save all " command. Effectively, this saves the entire project and all modified files. More...
|
|
bool | saveAsNewVersion (String name, bool markAsDefault) |
| saves the project as a new version. More...
|
|
|
bool | setUnitsAspectRatio (double x, double y) |
| sets the aspect ratio of the scene. The scene's final aspect ratio will be: X * numberOfUnitsX()/Y * numberOfUnitsY() More...
|
|
bool | setNumberOfUnits (int x, int y, int z) |
| sets the number of X, Y, and Z units in the scene grid. More...
|
|
bool | setCoordAtCenter (int x, int y) |
| sets the value of the centre (X, Y) coordinates. More...
|
|
bool | setDefaultResolution (int x, int y, double fov) |
| allows the default scene resolution and field of view to be changed. More...
|
|
bool | setDefaultResolutionName (String name) |
| This function allows the default scene resolution name to be changed. More...
|
|
bool | setFrameRate (int frameRate) |
| This function allows the default frame rate of the project to be changed. The frame rate is expressed as frame per second. Typical value is 12, 24 or 30. More...
|
|
QObject * | getCameraMatrix (int frame) |
| returns the model matrix for the default camera. More...
|
|
QObject * | toOGL (QObject *pointOrVector) |
| converts a field coordinate into an OGL coordinate More...
|
|
QObject * | fromOGL (QObject *pointOrVector) |
| converts an OGL coordinate into a field coordinate. More...
|
|
String | getDefaultDisplay () |
| retrieves default display set in current scene. More...
|
|
void | closeScene () |
| closes the current scene. More...
|
|
void | closeSceneAndExit () |
| closes the current scene and exits. More...
|
|
bool | closeSceneAndOpen (String &envName, String &jobName, String &sceneName, String &versionName) |
| closes the current scene and open the scene specified by env, job, scene and version More...
|
|
StringList | getMissingPalettes (bool unrecovered, bool recoveredNotYetSaved) |
| returns all palettes that were either unrecovered or recovered but not yet saved, depending on the arguments of the function. More...
|
|
QScriptValue | getMetadataList () |
|
The scene JavaScript global object. Retrieve and set global scene attributes, like the aspect ratio of the cells in the scene grid.