Copy link to clipboard
Copied
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'), stringIDTo
...Copy link to clipboard
Copied
This topic maybe give You a workaround. But I am still curious, how is it possible.
Is there a way to get the current timeline frame number in Frame Animation mode?
Copy link to clipboard
Copied
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;}
};
Copy link to clipboard
Copied
Got home, tried it out, works! Thanks again