I'm using this code to insert a nested sequence in the timeline:
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?
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).
Thanks! Is there a known workaround to achieve this?
You can unlink the two trackItems, then delete the undesired audio trackItem; PProPanel shows how.
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
No move yet; also likely to wait until UXP
Copy link to clipboard
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.
Ok, thank you!