Copy link to clipboard
Copied
How can i import another project programmatically and insert needed transition to timeline?
Like in video below, but using extendscript
https://youtu.be/zxliI8GEKSU
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:
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
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...
Is there any solution for that?
Copy link to clipboard
Copied
Actually they are not transitions but sequences made up from Adjustment layers filled with effects and overlays.
Copy link to clipboard
Copied
yes, so how to make that programmatically?))
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Are you wanting to create your script by somebody? Learn Premiere's API by yourself...
Copy link to clipboard
Copied
insertClip works a bit different than drag and drop, i'm already using it, but it doesn't work in this case...
Copy link to clipboard
Copied
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:
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...
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I suspect the difference is in the track targeting state, at the time of insertion.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
What values are you passing in, for the audio and video track indices?
Copy link to clipboard
Copied
seq.videoTracks[1].insertClip(getMediaByName('LensZoomIn'),10)
I use custom function to find media/sequence by name projectItems list
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
Is there any solution for that?
Copy link to clipboard
Copied
There's no API to control that setting.
Copy link to clipboard
Copied
This setting doesn't affect on
seq.videoTracks[1].insertClipSo 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?
Copy link to clipboard
Copied
Without controlling that setting, no.
Copy link to clipboard
Copied
I need to import it as on animation above or like on youtube video in initial post.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more