Page 1 of 1

Starting frames in Timecode property

Posted: August 4th, 2004, 9:31 am
by payal1711
Hi,

I have been trying to change the Starting Frame field in the Timecode property of a layer.

How is it done?

I have tried something like this

var myFolder = app.project.item(i);

myFolder.layer(d).property("Effects").property("Timecode").timecodeStartFrame.setValue(85);

But there is no suche method as timecodestartframe.

Does anyone know how to do this?

Posted: August 4th, 2004, 11:21 am
by Paul Tuersley
To get a script to set the Starting Frame parameter of a Timecode effect that had already
been applied to a layer, you'd use something like:

curLayer.Effects.property("Timecode").property("Starting Frame").setValue(85);

Paul T

Current timecode of a layer?

Posted: June 21st, 2005, 4:02 pm
by austin
Paul Tuersley wrote:To get a script to set the Starting Frame parameter of a Timecode effect that had already
been applied to a layer, you'd use something like:

curLayer.Effects.property("Timecode").property("Starting Frame").setValue(85);

Paul T
Is there an easy way to get the current timecode of a layer? Or convert the time in seconds to the current timebase?

preferably without having to use the timecode effect. I'm just trying to get the current position for a filename for a still.

Posted: July 17th, 2005, 7:17 am
by Paul Tuersley
I'm not quite sure what you mean. Are you trying to find the frame number of a layer at the current time in the composition. i.e like opening that layer's layer window and reading the current time displayed there?

Can you explain a bit more about what you are/were trying to do.

Paul T