Copy link to clipboard
Copied
Hi!
I'm using this code to insert a nested sequence in the timeline:
app.project.sequences[index].videoTracks[index].insertClip(projectItem, time)
The problem is that this insert both video and audio, not only the video part. Is there a way to insert only video or audio independently?
Thanks!
As Bruce mentioned it is not possible, but there is a workaround for inserting only video clip.
Before insert, you will need to set projectItem's audio outPoint to 0, thus during insert only video will be inserted:
nest.projectItem.setOutPoint('0', 2); // second argument - setOutPoint for only audio
This doesn't work for inserting only audio clip sadly.
Copy link to clipboard
Copied
Sorry, no. It's been requested, but that improvement is unlikely to be made, until we've moved to UXP (current target = 2nd half of 2022).
Copy link to clipboard
Copied
Thanks! Is there a known workaround to achieve this?
Copy link to clipboard
Copied
You can unlink the two trackItems, then delete the undesired audio trackItem; PProPanel shows how.
https://github.com/Adobe-CEP/Samples/blob/eea2d1a4a1f26b0e5913cf511590c3e1aa08268a/PProPanel/jsx/PPR...
Copy link to clipboard
Copied
Thanks. And is possible to move clips on different tracks? with move() i can only offset them in time but only in the same track
Copy link to clipboard
Copied
No move yet; also likely to wait until UXP
Copy link to clipboard
Copied
As Bruce mentioned it is not possible, but there is a workaround for inserting only video clip.
Before insert, you will need to set projectItem's audio outPoint to 0, thus during insert only video will be inserted:
nest.projectItem.setOutPoint('0', 2); // second argument - setOutPoint for only audio
This doesn't work for inserting only audio clip sadly.
Copy link to clipboard
Copied
Ok, thank you!