DeleteUnusedCamSeqTracks
 
 
 

DeleteUnusedCamSeqTracks

Introduced

v12.0 (2014)

Description

Deletes all tracks (of all types) on the camera sequencer which are currently not in use (i.e. have no clips on them).

Scripting Syntax

DeleteUnusedCamSeqTracks();

Examples

JScript Example

// This JScript example shows creation of a bunch of dummy
// shot tracks and their subsequent removal
// using the DeleteUnusedCamSeqTracks command.
// Try running with and without the last line to see the
// difference...it ends up deleting all but two of the tracks
// it creates.
// Create a sphere and a simple static Action.
NewScene( null, false );
// Create some tracks (mostly left empty to be deleted later).
count = 10
oTracks = new Array(count)
for ( i = 0; i < count; i++ )
{
        oTracks[i] = AddTrack("Scene_Root", null, 8, null, null);
}
// Add sources on some tracks.
AddShotClip( oTracks[1], null, null, null, null, null );
AddShotClip( oTracks[4], null, null, null, null, null );
// Finally, delete the unused ones.
DeleteUnusedCamSeqTracks( );

See Also

AddTrack AddShotClip GetShotClip Track