insertClip() - Insert only video or audio independently

Participant ,
Oct 15, 2021 Oct 15, 2021

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!

 

 

TOPICS
SDK

Views

137

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Oct 15, 2021 Oct 15, 2021
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.

Likes

Translate

Translate
Adobe Employee ,
Oct 15, 2021 Oct 15, 2021

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). 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

Thanks! Is there a known workaround to achieve this?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 15, 2021 Oct 15, 2021

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...

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 15, 2021 Oct 15, 2021

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Oct 15, 2021 Oct 15, 2021

Copy link to clipboard

Copied

No move yet; also likely to wait until UXP

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 15, 2021 Oct 15, 2021

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

LATEST

Ok, thank you!

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines