<p>I'd try to export a sample project as XML and then let a script change the necessary parts of the XML project file.</p>

CC BY-SA 3.0
2016-08-19T12:24:32.610Z
I've done this with Final Cut Pro XML. A good text editor designed for working with XML is helpful (e.g. a programmer's text editor like Atom, sublime text, textWrangler or notepad++).
stib
CC BY-SA 3.0
2016-03-21T22:17:05.863Z
2016-03-21T22:17:05.863Z
Hans Meiser
<p>Unfortunately the Premiere API seems to be almost completely undocumented by Adobe, except for <a href="https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/payloads/PPro_Panel_QuickStart_Guide.pdf" rel="nofollow noreferrer">this pdf on Github</a> I don't understand why. There's lots of info out there on scripting After Effects using the Extendscript Toolox (based on javascript), and a lot of it is similar for premiere. </p>

<p>However if you use the ExtendScript ToolBox's data browser you can see all the objects and methods there (you have to have Premiere running and choose Premiere from the drop-down in the top left as your target).</p>

<p><img src="https://i.sstatic.net/CcFqD.png" alt="enter image description here"></p>

<p>I'm still dipping my toe in the water as far as scripting premiere goes, so that's as far as I can help you.</p>

CC BY-SA 3.0
2015-05-26T13:55:03.877Z
2015-05-26T13:55:03.877Z
stib
<p>I have a few animations that I need to do with some frequency, the steps are as follows:</p>

<ol>
<li>Generate the image from an external program from a template.</li>
<li>Add the image to the second nest in a doubly-nested sequence.</li>
<li>Determine how long the image should play and apply two animation (motion) presets I made, clamped to the in and out of the image. The animation presets are the same, but since they depend on the in and out I have to determine the length first. (Scaling messes up some of the intermediate keys).</li>
<li>Add some audio at the beginning and end of the image (same audio, but clamped to the in and out).</li>
<li>Add a matte image (same every time) to the first nest, and apply a track matte effect on the second nest referring to it (same every time).</li>
</ol>

<p>The image is always of the same resolution.</p>

<p>This is very time consuming and I have to do it 5-10 times per video I make. Is there any way I can build some sort of macro that does this (except part 1, obviously)? Preferably it would automate as much as possible. Ideally, I could give it an image and a length parameter and it would generate the whole thing, but even automating just the nesting and track matte would save a lot of time.</p>

<p>Can I make a macro/preset that I can use across projects that does this? I don't have any experience with the Premiere API, but I have programming experience if this would be really straightforward by writing a plugin.</p>

<premiere>
Preset/macro for complicated nested effect
Linear
# Preset/macro for complicated nested effect

(Asked by: username_0 on 2015-05-23)

I have a few animations that I need to do with some frequency, the steps are as follows:

1. Generate the image from an external program from a template.
2. Add the image to the second nest in a doubly-nested sequence.
3. Determine how long the image should play and apply two animation (motion) presets I made, clamped to the in and out of the image. The animation presets are the same, but since they depend on the in and out I have to determine the length first. (Scaling messes up some of the intermediate keys).
4. Add some audio at the beginning and end of the image (same audio, but clamped to the in and out).
5. Add a matte image (same every time) to the first nest, and apply a track matte effect on the second nest referring to it (same every time).

The image is always of the same resolution.

This is very time consuming and I have to do it 5-10 times per video I make. Is there any way I can build some sort of macro that does this (except part 1, obviously)? Preferably it would automate as much as possible. Ideally, I could give it an image and a length parameter and it would generate the whole thing, but even automating just the nesting and track matte would save a lot of time.

Can I make a macro/preset that I can use across projects that does this? I don't have any experience with the Premiere API, but I have programming experience if this would be really straightforward by writing a plugin.

**Tags:** premiere


---

## 2 answers

### Answer by username_1 on 2016-03-21. Score: 1

I'd try to export a sample project as XML and then let a script change the necessary parts of the XML project file.

> **Comments:**
> **username_2**: I've done this with Final Cut Pro XML. A good text editor designed for working with XML is helpful (e.g. a programmer's text editor like Atom, sublime text, textWrangler or notepad++).  

---

### Answer by username_2 on 2015-05-26. Score: 0

Unfortunately the Premiere API seems to be almost completely undocumented by Adobe, except for [this pdf on Github](https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/payloads/PPro_Panel_QuickStart_Guide.pdf) I don't understand why. There's lots of info out there on scripting After Effects using the Extendscript Toolox (based on javascript), and a lot of it is similar for premiere.

However if you use the ExtendScript ToolBox's data browser you can see all the objects and methods there (you have to have Premiere running and choose Premiere from the drop-down in the top left as your target).

![enter image description here](https://i.sstatic.net/CcFqD.png)

I'm still dipping my toe in the water as far as scripting premiere goes, so that's as far as I can help you.


---

