The StoryboardManager JavaScript class. Access the main storyboard project and its components. More...
Public Slots | |
Queries - Sequences | |
int | numberOfSequencesInProject () |
Return the number of sequences in the project. More... | |
String | sequenceInProject (int i) |
Return the sequenceId of the ith sequence in project. More... | |
String | sequenceIdOfScene (String &sceneId) |
Return sequenceId of the sequence of the given scene. More... | |
Queries - Scenes | |
int | numberOfScenesInSequence (String &sequenceId) |
Return the number of scenes in a sequence. More... | |
String | sceneInSequence (String &sequenceId, int i) |
Return sceneId of the ith scene in sequence. More... | |
int | numberOfScenesInProject () |
Return the number of scenes in project. More... | |
String | sceneInProject (int i) |
Return the sceneId of the ith scene in project. More... | |
String | sceneIdOfPanel (String &panelId) |
Return the sceneId of the panel. More... | |
Queries - Panels | |
int | numberOfPanelsInScene (String &sceneId) |
Return the number of panels in a scene. More... | |
String | panelInScene (String &sceneId, int index) |
Return the panelId of the ith panel in the scene. More... | |
int | numberOfPanelsInProject () |
Return the number of panels in project. More... | |
String | panelInProject (int i) |
Return panelId of the ith panel in the project. More... | |
Queries - General | |
String | nameOfSequence (String &sequenceId) |
Return the name of the sequence. More... | |
String | nameOfScene (String &sceneId) |
Return the name of the scene. More... | |
String | nameOfPanel (String &panelId) |
Return the name of the panel. More... | |
String | sequenceId (String &sequenceName) |
Return the unique id of the sequence. More... | |
String | sceneId (String &sequenceName, String &sceneName) |
Return the unique id of the scene. More... | |
String | panelId (String &sequenceName, String &sceneName, String &panelName) |
Return the unique id of the panel. More... | |
String | actNameOfScene (String &shotId) |
Return the name of the act. More... | |
Commands to create/rename/delete | |
String | createSequence (String &firstShotId, String &lastShotId) |
Create a new sequence. More... | |
String | insertScene (bool after, String &shotId, String &name) |
Insert a new scene. More... | |
String | appendScene (String &name) |
Append a scene at the end of the project. More... | |
String | insertPanel (bool after, String &panelId, String &name) |
Insert a new panel. More... | |
String | appendPanel (String &name) |
Append a panel at the end of the project. More... | |
bool | splitPanel (String &panelId, unsigned int atFrame) |
Split a panel into 2 panels. More... | |
bool | deleteSequence (String &seqId) |
Delete a sequence. More... | |
bool | deleteScene (String &sceneId) |
Delete a scene. More... | |
bool | deletePanel (String &panelId) |
Deletes a panel. More... | |
bool | renameSequence (String &seqId, String &newName) |
Rename a sequence. More... | |
bool | renameScene (String &sceneId, String &newName) |
Rename a scene. More... | |
String | getValidSceneName (String &sceneId, String &baseName) |
Returns baseName if valid and unused or return a valid name based on baseName and naming rules. Returns empty string in case of error. More... | |
bool | renamePanel (String &panelId, String &newName) |
Rename a panel. More... | |
int | getPanelDuration (String &panelId) |
Get the panel Duration. More... | |
bool | setPanelDuration (String &panelId, int frames) |
Set the panel duration. More... | |
void | setPanelColor (String &panelId, QScriptValue &color) |
String | getPanelColor (String &panelId) |
int | sceneStartFrame (String &shotId) |
Return the start frame of a scene. More... | |
int | sceneEndFrame (String &shotId) |
Return the last frame of a scene. More... | |
Transition Queries | |
For the sake of clarity, the trx is always associated with the shot to its right. | |
StringList | scenesWithTrx () |
Return a list of the sceneIds of scenes that have leading transitions. More... | |
String | sceneIdOfTrx (String &trxId) |
Return the sceneId of the shot to the right of the transition. More... | |
String | trxIdOfScene (String &shotId) |
Return the transition ID of the transition to the left of the shot. More... | |
bool | sceneHasTrx (String &shotId) |
Return whether a scene has a leading transition. More... | |
String | trxType (String &trxId) |
Return a string identifying the transition type. More... | |
int | trxLength (String &trxId) |
Return the length of the transition. More... | |
Transition Commands to create/delete/modify | |
String | createTrx (String &shotId, unsigned int length, String &stringType, int angle=90, bool reverse=false) |
Create a transition ( at the beginning of the target shot ), and return the unique ID of the transition. More... | |
bool | modifyTrx (String &trxId, String &stringType, int angle=90, bool reverse=false) |
Modify the transition. More... | |
bool | resizeTrx (String &trxId, unsigned int length) |
Resize a transition. More... | |
bool | deleteTrx (String &trxId) |
Delete a transition. More... | |
Metadata Commands to Access/Modify | |
QScriptValue | getProjectMetadata (String &name, String &type=QNTR("string")) |
Return the project metadata object corresponding to the given name and type. More... | |
QScriptValue | getProjectMetadatas () |
Return the list of metadatas for the current project. More... | |
void | setProjectMetadata (QScriptValue &meta) |
Either inserts a new project metadata object or sets the value of an existing project metadata object. More... | |
bool | removeProjectMetadata (QScriptValue &meta) |
Removes a project metadata object from the list of project metadata objects. More... | |
QScriptValue | getPanelMetadata (String &panelId, String &name, String &type=QNTR("string")) |
Return the panel metadata object corresponding to the given name and type. More... | |
QScriptValue | getPanelMetadatas (String &panelId) |
Return the list of metadatas for the specified panel. More... | |
void | setPanelMetadata (String &panelId, QScriptValue &meta) |
Either inserts a new project metadata object or sets the value of an existing project metadata object. More... | |
bool | removePanelMetadata (String &panelId, QScriptValue &meta) |
Removes a project metadata object from the list of project metadata objects. More... | |
The StoryboardManager JavaScript class. Access the main storyboard project and its components.
It can be used to query the sequences, scenes, panels and transitions of the project. As well, it can be used to create, delete or rename project objects.
Scenes, Panels and Transitions are identified by a unique id. For the sake of clarity, a transition is considered to belong to the shot to it's right. Or, the shot owns the transition to it's left.
The following examples are provided:
|
slot |
Return the name of the act.
shotId | - unique ID of scene |
|
slot |
Append a panel at the end of the project.
name | - name of new scene |
|
slot |
Append a scene at the end of the project.
name | - name of new scene |
|
slot |
Create a new sequence.
firstShotId | - sceneId of first targetShot |
lastShotId | - sceneId of last targetShot |
|
slot |
Create a transition ( at the beginning of the target shot ), and return the unique ID of the transition.
shotId | - unique ID of the shot |
length | - length of transition, must be less than the length of the preceding panel |
stringType | - "wipe", "dissolve", "edge wipe", "clock wipe" or "slide" |
angle | - angle in degrees ( used for wipes ) |
reverse | - bool to reverse the wipe direction. |
|
slot |
Deletes a panel.
panelId | - panelId of target panel |
|
slot |
Delete a scene.
sceneId | - sceneId of target scene |
|
slot |
Delete a sequence.
seqId | - sceneId of sequence |
|
slot |
Delete a transition.
trxId | - unique ID of the transition |
|
slot |
Get the color of the panel.
panelId | - panelId of the target panel |
|
slot |
Get the panel Duration.
panelId | - panelId of target panel |
|
slot |
Return the panel metadata object corresponding to the given name and type.
Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
name | : The name of the metadata object. |
type | : The metadata type. |
|
slot |
Return the list of metadatas for the specified panel.
This method returns an array of javascript objects where each object represent a single metadata object. Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
|
slot |
Return the project metadata object corresponding to the given name and type.
Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
name | : The name of the metadata object. |
type | : The metadata type. |
|
slot |
Return the list of metadatas for the current project.
This method returns an array of javascript objects where each object represent a single metadata object. Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
|
slot |
Returns baseName if valid and unused or return a valid name based on baseName and naming rules. Returns empty string in case of error.
sceneId | - sceneId of target scene |
baseName | - name |
|
slot |
Insert a new panel.
after | - whether the panel should be created after the target panel |
panelId | - panelId of target panel |
name | - name of new scene |
|
slot |
Insert a new scene.
after | - whether the scene should be created after the target Shot |
shotId | - sceneId of targetShot |
name | - name of new scene |
|
slot |
Modify the transition.
trxId | - unique ID of the transition |
stringType | - "wipe", "dissolve", "edge wipe", "clock wipe" or "slide" |
angle | - angle in degrees ( used for wipes ) |
reverse | - bool to reverse the wipe direction. |
|
slot |
Return the name of the panel.
panelId | - unique id of panel |
|
slot |
Return the name of the scene.
sceneId | - unique id of scene |
|
slot |
Return the name of the sequence.
sequenceId | - unique id of sequence |
|
slot |
Return the number of panels in project.
|
slot |
Return the number of panels in a scene.
sceneId | - unique id of scene |
|
slot |
Return the number of scenes in project.
|
slot |
Return the number of scenes in a sequence.
sequenceId | - unique id of sequence |
|
slot |
Return the number of sequences in the project.
|
slot |
Return the unique id of the panel.
sequenceName | - name of sequence |
sceneName | - name of scene |
panelName | - name of panel |
|
slot |
Return panelId of the ith panel in the project.
i | - index of the panel in the project |
|
slot |
Return the panelId of the ith panel in the scene.
sceneId | - unique id of the scene |
index | - panel index in the scene |
|
slot |
Removes a project metadata object from the list of project metadata objects.
meta | : A metadata object. |
|
slot |
Removes a project metadata object from the list of project metadata objects.
meta | : A metadata object. |
|
slot |
Rename a panel.
panelId | - panelId of target panel |
newName | - new name |
|
slot |
Rename a scene.
sceneId | - sceneId of target scene |
newName | - new name |
|
slot |
Rename a sequence.
seqId | - sequenceId of target sequence |
newName | - new name |
|
slot |
Resize a transition.
trxId | - unique ID of the transition |
length | - length of transition |
|
slot |
Return the last frame of a scene.
shotId | - unique ID of scene |
|
slot |
Return whether a scene has a leading transition.
shotId | - unique ID of the scene |
|
slot |
Return the unique id of the scene.
sequenceName | - name of sequence |
sceneName | - name of scene |
|
slot |
Return the sceneId of the panel.
panelId | - unique id of panel |
|
slot |
Return the sceneId of the shot to the right of the transition.
trxId | - unique ID of the transition |
|
slot |
Return the sceneId of the ith scene in project.
i | - index in project |
|
slot |
Return sceneId of the ith scene in sequence.
sequenceId | - unique id of sequence |
i | - index in sequence |
|
slot |
Return the start frame of a scene.
shotId | - unique ID of scene |
|
slot |
Return a list of the sceneIds of scenes that have leading transitions.
|
slot |
Return the unique id of the sequence.
sequenceName | - name of sequence |
|
slot |
Return sequenceId of the sequence of the given scene.
sceneId | - unique id of scene |
|
slot |
Return the sequenceId of the ith sequence in project.
i | - sequence index in the project |
|
slot |
Set the panel colour.
panelId | - panelId of the target panel. |
color | - numerical value (HEX) or the name (See HTML naming convention) of the color we want to set the panel. |
|
slot |
Set the panel duration.
panelId | - panelId of target panel |
frames | - number of frames |
|
slot |
Either inserts a new project metadata object or sets the value of an existing project metadata object.
If a metadata object already exist with the given name and type properties, then sets its value with the given value property. Otherwise, inserts a new metadata object with the given name, type(default is string), creator(default is executable), version(default is 1.0) and values properties. Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
meta | : A metadata object. |
|
slot |
Either inserts a new project metadata object or sets the value of an existing project metadata object.
If a metadata object already exist with the given name and type properties, then sets its value with the given value property. Otherwise, inserts a new metadata object with the given name, type(default is string), creator(default is executable), version(default is 1.0) and values properties. Here is an example of a metadata object:
Supported values for type are: string, int, double, bool.
meta | : A metadata object. |
|
slot |
Split a panel into 2 panels.
panelId | - panelId of target panel |
atFrame | - frame at which to split ( measured from start of project ) |
|
slot |
Return the transition ID of the transition to the left of the shot.
shotId | - unique ID of the scene |
|
slot |
Return the length of the transition.
trxId | - unique ID of the transition |
|
slot |
Return a string identifying the transition type.
trxId | - unique ID of the transition |