• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

insertClip() - Insert only video or audio independently

Contributor ,
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

523

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

Contributor , 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 audio

This doesn't work for inserting only audio clip sadly.

Votes

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

Votes

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

Copy link to clipboard

Copied

Thanks! Is there a known workaround to achieve this?

Votes

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

Votes

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
Contributor ,
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

Votes

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

Votes

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

Votes

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
Contributor ,
Oct 17, 2021 Oct 17, 2021

Copy link to clipboard

Copied

LATEST

Ok, thank you!

Votes

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