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

How to import project and insert transition to timeline using extendscript?

Participant ,
Jun 06, 2022 Jun 06, 2022

How can i import another project programmatically and insert needed transition to timeline?

Like in video below, but using extendscript
https://youtu.be/zxliI8GEKSU

TOPICS
SDK
1.4K
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 3 Correct answers

Adobe Employee , Jun 06, 2022 Jun 06, 2022

By "make that programmatically", I think you mean "how to insert a sequence, into another sequence". 

PProPanel demonstrates both. 

Here's how to import a sequence from another project: 

https://github.com/Adobe-CEP/Samples/blob/ef77e70b0fb813c8db5b32159b98ed7fdd15c541/PProPanel/jsx/PPRO/Premiere.jsx#L287

 

Here's how to insert a segment from a projectItem (in your case, sequence), into a sequence: 

https://github.com/Adobe-CEP/Samples/blob/ef77e70b0fb813c8db5b32159b98ed7fdd15c541/PProPanel/jsx/PPRO/Premiere.jsx#L1656


Translate
Participant , Jun 07, 2022 Jun 07, 2022

As i understood "insert and overwrite sequences as nests" changes behaviour on how drag and drop works, is there any way to emulate that action using extendscript? Currently "insertClip" works like when that option is disabled...

Dmitriy5FD0_0-1654595864545.gif

 

Translate
Participant , Jun 08, 2022 Jun 08, 2022

Is there any solution for that?

Translate
Community Expert ,
Jun 06, 2022 Jun 06, 2022

Actually they are not transitions but sequences made up from Adjustment layers filled with effects and overlays.

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
Community Beginner ,
Jun 06, 2022 Jun 06, 2022

yes, so how to make that programmatically?))

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
Community Expert ,
Jun 06, 2022 Jun 06, 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
Explorer ,
Jun 06, 2022 Jun 06, 2022

Are you wanting to create your script by somebody? Learn Premiere's API by yourself...

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 ,
Jun 06, 2022 Jun 06, 2022

insertClip works a bit different than drag and drop, i'm already using it, but it doesn't work in this case...

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 ,
Jun 06, 2022 Jun 06, 2022

By "make that programmatically", I think you mean "how to insert a sequence, into another sequence". 

PProPanel demonstrates both. 

Here's how to import a sequence from another project: 

https://github.com/Adobe-CEP/Samples/blob/ef77e70b0fb813c8db5b32159b98ed7fdd15c541/PProPanel/jsx/PPR...

 

Here's how to insert a segment from a projectItem (in your case, sequence), into a sequence: 

https://github.com/Adobe-CEP/Samples/blob/ef77e70b0fb813c8db5b32159b98ed7fdd15c541/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 ,
Jun 06, 2022 Jun 06, 2022

i can insert sequense to sequense, but it inserts only one track while Premiere when you drag and drop it inserts 2 tracks at once.

Dmitriy5FD0_0-1654549601524.png

 

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 ,
Jun 06, 2022 Jun 06, 2022

I suspect the difference is in the track targeting state, at the time of insertion.

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 ,
Jun 06, 2022 Jun 06, 2022

when i drag and drop it shows 2 tracks no matter where i move it and it only inserts 2 tracks when "Insert and owerwrite..." button is enabled:

Dmitriy5FD0_0-1654551698334.png

 

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 ,
Jun 06, 2022 Jun 06, 2022

What values are you passing in, for the audio and video track indices?

 

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 ,
Jun 06, 2022 Jun 06, 2022

seq.videoTracks[1].insertClip(getMediaByName('LensZoomIn'),10)

I use custom function to find media/sequence by name projectItems list

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 ,
Jun 07, 2022 Jun 07, 2022

As i understood "insert and overwrite sequences as nests" changes behaviour on how drag and drop works, is there any way to emulate that action using extendscript? Currently "insertClip" works like when that option is disabled...

Dmitriy5FD0_0-1654595864545.gif

 

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 ,
Jun 08, 2022 Jun 08, 2022

Is there any solution for that?

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 ,
Jun 08, 2022 Jun 08, 2022

There's no API to control that setting.

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 ,
Jun 08, 2022 Jun 08, 2022

This setting doesn't affect on 

seq.videoTracks[1].insertClip

So i don't need to control it.

I need to import another sequence same way as drag and drop, it's possible to achieve that?

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 ,
Jun 08, 2022 Jun 08, 2022
LATEST

Without controlling that setting, no.

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 ,
Jun 08, 2022 Jun 08, 2022

I need to import it as on animation above or like on youtube video in initial post.

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