How to set a reference to compositions name instead of index
Posted: May 9th, 2012, 12:50 am
I need to work with some variables contained in the first layer of a precomp in order to move some of the in-out points of the in my main comp.
When working with Expressions I was able to reference the comp's name directly using [comp("comp name")
But the same method doesn't seem to apply for scripting. And the current item and selected item won't get me where i need to go as I need to get values from many precomps.
This is what I'm trying to to do
Thanks everyone. I'm looking forward to learn and help as my skills improve.
When working with Expressions I was able to reference the comp's name directly using [comp("comp name")
But the same method doesn't seem to apply for scripting. And the current item and selected item won't get me where i need to go as I need to get values from many precomps.
This is what I'm trying to to do
Code: Select all
Vid1Dur = comp("Put 1st video here").layer(1).outPoint; //gets precomps 1st layers length by retrieving the outpoint