• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to get current timeline frame number using jsx?

Guest
Apr 14, 2016 Apr 14, 2016

Copy link to clipboard

Copied

How to get current timeline frame number using jsx?

TOPICS
Actions and scripting

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Deleted User
Apr 18, 2016 Apr 18, 2016

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

...

Votes

Translate

Translate
Adobe
Contributor ,
Apr 14, 2016 Apr 14, 2016

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 18, 2016 Apr 18, 2016

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;}

};

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Apr 19, 2016 Apr 19, 2016

Copy link to clipboard

Copied

LATEST

Got home, tried it out, works! Thanks again

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines