Script to time stretch layer so outpoint is set at detemined comp time.
Hi Everyone!
After doing some reading on the documentation and thinking through this problem, I thought I would ask for some guidance. I'm curious to know if it's possible, with ExtendScript, to time stretch a layer such that its outpoint land's on at a determined point in the timeline. I see that we can set the value of a layer's .stretch property, but I suppose I wan to know if there is a way to devise what that percentage value is based on where I want the layer's .outPoint to end up.
Let's say I have a layer whose inPoint starts at 0, and outpoint ends at 5. Now, let's say I want to stretch the layer negatively so that the outpoint ends at 3.25. What is the best way to determine the stretch value for the layer?
Thanks,
Arie
