Skip to main content
Premiopolis
Inspiring
July 25, 2018
Question

[track].insertClip() & [track].overwriteClip() -- Quirks & Questions

  • July 25, 2018
  • 0 replies
  • 874 views

Referencing insertClip and overwriteClip​ methods from CEP ExtendScript examples

Quirk:

It doesn't seem to matter whether you choose the target sequence's videoTracks or audioTracks.  Executing insertClip/overwriteClip always carries all picture and sound tracks from source clip to sequence.  The timeline track activators play no role.  For the purposes of a rough auto-assembly this is not a problem, even welcome.  Nonetheless..

Question:

Is there a way to be more articulate about an ExtendScript-driven auto-edit: i.e. a way to choose which source tracks are included / excluded?

Quirk:

It does matter which track layer is chosen.  Choosing videoTracks[0] or audioTracks[0] means a source clip with 1 picture track and 2 sound tracks will route to V1 and A1 / A2 on the record side.  Choosing videoTracks[1]/audioTracks[1] means Source V1/A1/A2 will route to Sequence V2/A2/A3

Question:

Is there a way to more definitively route source tracks to sequence tracks?

Quirk:

Editing to a Sequence time code of type string (https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L1433) does not seem to work as suggested in the CEP example.  The string is interpreted as 0 seconds.  Editing to a Sequence time code of type number (seconds) works as expected.

Question:

What happens if you edit to a sequence time that does not mesh with the frame rate of the sequence?  example instead of...

aSequence.videoTracks[0].insertClip(aProjectItem,8+(5/23.976));

          (i.e. A Project Item added to a sequence at 8 seconds and 5 frames in a 23.976 sequence)

you do the following

aSequence.videoTracks[0].insertClip(aProjectItem,8+(5/24));

          (i.e A Project Item added to a sequence at 8 seconds and not-exactly 5 frames of a 23.976 sequence.)

Is PPro automatically rounding the slight offset to the nearest accurate frame, or are you introducing a sub-frame offset of sound, and/or are you creating a technical problem that will haunt you at some point later in the post-production process?

This topic has been closed for replies.