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

getValueAtKey In Text control

New Here ,
Mar 05, 2024 Mar 05, 2024

Copy link to clipboard

Copied

When I use the extension script of PR to retrieve the properties of the keyframe of a text control, the properties returned by getvalueatTime() are all default values and do not change. When I try to use getkeys to return the keyframe, I find that the seconds in it do not correspond one-to-one with the getPlayerPosition value I use. The values in getkeys all start at 3600. How can I obtain the correct properties, or how can I know the index of the keyframe I currently correspond to

 

attach files:

0-playerpostion

1,2,3-keyframe data

TOPICS
Error or problem , SDK

Views

362

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

Adobe Employee , Mar 06, 2024 Mar 06, 2024

Without the project you're using, it's hard to provide any meaningful guidance. Yours is the first report we've heard, of such behavior.

 

If you can send us your .prproj (we don't need media) and an ExtendScript snippet that reliably reproduces the problem, we'd be happy to pursue it further.

Votes

Translate

Translate
Adobe Employee ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

Without the project you're using, it's hard to provide any meaningful guidance. Yours is the first report we've heard, of such behavior.

 

If you can send us your .prproj (we don't need media) and an ExtendScript snippet that reliably reproduces the problem, we'd be happy to pursue it further.

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
New Here ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

attach file is the project,

the code is as follows:

var propertyValue = property.getValue();
if(property.areKeyframesSupported()){
 
var keys = property.getKeys();
for(var i = 0;i<keys.length;i++){
var a = property.getValueAtKey(keys[i])
a
}
 
}
 
what else needs to be added?

 

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
Adobe Employee ,
Mar 06, 2024 Mar 06, 2024

Copy link to clipboard

Copied

That snippet is incomplete; property is not defined...?

 

[Again, if you don't want to post stuff here, you can also email me...]

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
New Here ,
Mar 10, 2024 Mar 10, 2024

Copy link to clipboard

Copied

I have sent the proj to your email.,any other must be added?

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
Adobe Employee ,
Mar 11, 2024 Mar 11, 2024

Copy link to clipboard

Copied

Yes; working ExtendScript that demonstrates the issue. The snippet above isn't functional.

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
New Here ,
Mar 13, 2024 Mar 13, 2024

Copy link to clipboard

Copied

LATEST

Thank you for your answer. If there are any results, please let me know

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