How to get current timeline frame number using jsx?
How to get current timeline frame number using jsx?
How to get current timeline frame number using jsx?
Thanks for the link!
Clarification: I was looking for current frame on Video Timeline. OP there mentions that he had found how to get that so I searched around a bit more and found this thread: Re: Can I read/write inpoint and outpoint of clips in a Video Group with scripting? They have the following function, I have not tried it out yet but it looks like it should work.
function getCurrentFrame(){
try{
var ref = new ActionReference();
ref.putProperty(charIDToTypeID('Prpr'), stringIDToTypeID('currentFrame'));
ref.putClass(stringIDToTypeID('timeline'));
var desc=new ActionDescriptor();
desc.putReference(charIDToTypeID('null'), ref);
var TC=executeAction(charIDToTypeID('getd'), desc, DialogModes.NO);
return TC.getInteger(stringIDToTypeID('currentFrame'));
}catch(e){return null;}
};
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.