This interface is used to access the main storyboard project. 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.
More...
|
|
int | numberOfSequencesInProject () |
| Returns the number of sequences in the project.
|
|
String | sequenceInProject (int i) |
| Returns the sequenceId of the ith sequence in project.
|
|
String | sequenceIdOfScene (String &sceneId) |
| Returns sequenceId of the sequence of the given scene.
|
|
|
int | numberOfScenesInSequence (String &sequenceId) |
| returns the number of scenes in a sequence
|
|
String | sceneInSequence (String &sequenceId, int i) |
| Returns sceneId of the ith scene in sequence.
|
|
int | numberOfScenesInProject () |
| returns the number of scenes in project
|
|
String | sceneInProject (int i) |
| Returns sceneId of the ith scene in project.
|
|
String | sceneIdOfPanel (String &panelId) |
| Returns sceneId of the panel.
|
|
|
int | numberOfPanelsInScene (String &sceneId) |
| Returns the number of panels in a scene.
|
|
String | panelInScene (String &sceneId, int index) |
| Returns the panelId of the ith panel in the scene.
|
|
int | numberOfPanelsInProject () |
| returns the number of panels in project
|
|
String | panelInProject (int i) |
| Returns panelId of the ith panel in project.
|
|
|
String | nameOfSequence (String &sequenceId) |
| Returns the name of the sequence.
|
|
String | nameOfScene (String &sceneId) |
| Returns the name of the scene.
|
|
String | nameOfPanel (String &panelId) |
| Returns the name of the panel.
|
|
String | sequenceId (String &sequenceName) |
| Returns the unique id of the sequence.
|
|
String | sceneId (String &sequenceName, String &sceneName) |
| Returns the unique id of the scene.
|
|
String | panelId (String &sequenceName, String &sceneName, String &panelName) |
| Returns the unique id of the panel.
|
|
|
String | createSequence (String &firstShotId, String &lastShotId) |
| Creates a new sequence.
|
|
String | insertScene (bool after, String &shotId, String &name) |
| Inserts a new scene.
|
|
String | appendScene (String &name) |
| Append a scene at the end of the project.
|
|
String | insertPanel (bool after, String &panelId, String &name) |
| Inserts a new panel.
|
|
String | appendPanel (String &name) |
| Append a panel at the end of the project.
|
|
bool | splitPanel (String &panelId, unsigned int atFrame) |
| Split a panel into 2 panels.
|
|
bool | deleteSequence (String &seqId) |
| Deletes a sequence.
|
|
bool | deleteScene (String &sceneId) |
| Deletes a scene.
|
|
bool | deletePanel (String &panelId) |
| Deletes a panel.
|
|
bool | renameSequence (String &seqId, String &newName) |
| Renames a sequence.
|
|
bool | renameScene (String &sceneId, String &newName) |
| Renames a scene.
|
|
bool | renamePanel (String &panelId, String &newName) |
| Renames a panel.
|
|
int | getPanelDuration (String &panelId) |
| gets the panel Duration
|
|
bool | setPanelDuration (String &panelId, int frames) |
| sets the panel duration
|
|
int | sceneStartFrame (String &shotId) |
| returns the start frame of a scene
|
|
int | sceneEndFrame (String &shotId) |
| returns the last frame of a scene
|
|
|
For the sake of clarity, the trx is always associated with the shot to it's right.
|
StringList | scenesWithTrx () |
| returns a list of the sceneIds of scenes that have leading transitions
|
|
String | sceneIdOfTrx (String &trxId) |
| returns the sceneId of the shot to the right of the transition
|
|
String | trxIdOfScene (String &shotId) |
| returns the transition ID of the transition to the left of the shot
|
|
bool | sceneHasTrx (String &shotId) |
| returns whether a scene has a leading transition
|
|
String | trxType (String &trxId) |
| returns a string identifying the transition type
|
|
int | trxLength (String &trxId) |
| returns the length of the transition
|
|
|
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.
|
|
bool | modifyTrx (String &trxId, String &stringType, int angle=90, bool revers=false) |
| modify the transition
|
|
bool | resizeTrx (String &trxId, unsigned int length) |
| resize a transition
|
|
bool | deleteTrx (String &trxId) |
| delete a transition
|
|
This interface is used to access the main storyboard project. 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:
function projectQuery()
{
var nbSeqs = storyboard.numberOfSequencesInProject();
for ( var i =0; i < nbSeqs; ++i )
{
var id = storyboard.sequenceInProject( i );
System.println( "Sequence is " + id + " : " + storyboard.nameOfSequence( id ) ) ;
var nbScenes = storyboard.numberOfScenesInSequence( id );
for ( var j = 0; j < nbScenes; ++ j )
{
var sceneId = storyboard.sceneInSequence( id, j );
System.println( " scene is " + sceneId + " : " + storyboard.nameOfScene( sceneId ) ) ;
}
}
var nbShots = storyboard.numberOfScenesInProject();
for ( var i =0; i < nbShots; ++i )
{
var sceneId = storyboard.sceneInProject(i);
var seqId = storyboard.sequenceIdOfScene( sceneId );
System.println( "Scene is " + sceneId + ": " + storyboard.nameOfScene( sceneId ) + " sequence is " + storyboard.nameOfSequence( seqId)) ;
}
}
function transitionQuery()
{
var sceneList = sb.scenesWithTrx();
for ( var i = 0; i < sceneList.length; ++i )
{
var trxId = sb.trxIdOfScene( sceneList[i] );
System.println(sb.nameOfScene( sceneList[i] )
+ " has a transition of type "
+ sb.trxType( trxId )
+ " and of length "
+ sb.trxLength( trxId ));
}
}