Skip to main content
Hey Evgenii
Inspiring
April 2, 2023
Answered

PPro components setValue doesn't update text

  • April 2, 2023
  • 1 reply
  • 496 views

Hi, guys I am trying to change the text  component source value

When I run the code below with getValue() I get some weird results: like. Ÿ or O

 

for (var i = 0; i < clip.components.numItems; i++) {
    var component = clip.components[i]
    $.writeln('Component: ' + component.displayName.toString())
    for (var k = 0; k < component.properties.length; k++) {
      var prop = component.properties[k]
      $.writeln('\t' + prop.displayName.toString() + ': ' + prop.getValue().toString())
      
    }
  }

 


and if I call setValue to one of those sourceText objects it actually updates value in system (Check the screenshot), but in UI the old text is still there 

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

Sadly, the API only supports .mogrts created in After Effects. This is unlikely to change in the near future.

1 reply

Bruce Bullis
Community Manager
Community Manager
April 2, 2023

Do I guess correctly that the .mogrt in question was not created in AE?

Hey Evgenii
Inspiring
April 2, 2023

Yes, inside the ppro

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
April 2, 2023

Sadly, the API only supports .mogrts created in After Effects. This is unlikely to change in the near future.