Skip to main content
Participant
March 6, 2024
Answered

getValueAtKey In Text control

  • March 6, 2024
  • 1 reply
  • 562 views

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

This topic has been closed for replies.
Correct answer Bruce Bullis

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.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
March 6, 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.

Participant
March 7, 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?

 

Bruce Bullis
Legend
March 7, 2024

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

 

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