Nest selected comp into a new comp

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
i4n
Posts: 14
Joined: July 8th, 2011, 3:52 pm

Hello,

What I'd like to accomplish (using Scripting) is the equivalent of dragging and releasing an existing comp over the 'Create a new composition' button, located at the bottom of the Project UI. Any idea of how to do this? I'll tweak some parameters of the new comp once I get there, but I'd like to at least try to figure that bit out on my own - as far as this goes though, I'm stumped.

I'm planning on using this bit of code to signify that I'd like the currently selected comp-item to be the comp affected:

Code: Select all

var curItem=app.project.item();

note: Thanks for providing/participating-in a resource for ae scripting. This is truly great.


I4N
i4n
Posts: 14
Joined: July 8th, 2011, 3:52 pm

I searched the boards and found this already existing post:

http://www.aenhancers.com/viewtopic.php?f=8&t=1394

Does a pretty good job of answering my original question. If anyone has anything they'd like to add, feel free.


Thanks,
I4n
Post Reply