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

insertClip() - Insert only video or audio independently

Participant ,
Oct 15, 2021 Oct 15, 2021

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
1.1K
Translate
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.

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

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

Translate
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

Thanks! Is there a known workaround to achieve this?

Translate
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

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

Translate
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

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

Translate
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

No move yet; also likely to wait until UXP

Translate
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

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.

Translate
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
LATEST

Ok, thank you!

Translate
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