Page 1 of 1

Nest selected comp into a new comp

Posted: July 8th, 2011, 5:02 pm
by i4n
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

Re: Nest selected comp into a new comp

Posted: July 8th, 2011, 5:37 pm
by i4n
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