Page 1 of 1

setting negative inpoint values

Posted: July 28th, 2008, 3:56 pm
by knubile
I have no problem setting the inpoint of a layer to a negative value manually. When I try to do it with the script the value is simply set to zero instead.
Is there a way to set an inpoint value to a negative number besides just setting layer.inPoint?

I'm using CS2. Can anybody quickly trying this out in CS3 please and let me know if this has been addressed?

Re: setting negative inpoint values

Posted: July 29th, 2008, 9:20 am
by lloydalvarez
it would help if you posted your code so we can see how you are trying to set the inPoint.

Re: setting negative inpoint values

Posted: July 29th, 2008, 10:17 am
by knubile
I narrowed it down to a single line.

once I have the layer object,

layer.inPoint = -2;

That should set the inPoint of the layer to -2 seconds. The resulting inPoint however is 0.

Re: setting negative inpoint values

Posted: July 29th, 2008, 10:33 am
by lloydalvarez
try this instead:

layer.startTime = -2;

-Lloyd