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

getValueAtKey In Text control

New Here ,
Mar 05, 2024 Mar 05, 2024

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
539
Translate
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.

Translate
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.

Translate
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

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?

 

Translate
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

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

 

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

Translate
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

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

Translate
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

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

Translate
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
LATEST

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

Translate
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