Copiar link para a área de transferência
Copiado
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 audioThis doesn't work for inserting only audio clip sadly.
Copiar link para a área de transferência
Copiado
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).
Copiar link para a área de transferência
Copiado
Thanks! Is there a known workaround to achieve this?
Copiar link para a área de transferência
Copiado
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...
Copiar link para a área de transferência
Copiado
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
Copiar link para a área de transferência
Copiado
No move yet; also likely to wait until UXP
Copiar link para a área de transferência
Copiado
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 audioThis doesn't work for inserting only audio clip sadly.
Copiar link para a área de transferência
Copiado
Ok, thank you!
Encontre mais inspiração, eventos e recursos na nova comunidade da Adobe
Explore agora