Skip to main content
Participant
March 6, 2023
Answered

Is there a way can modify read-only components in Adobe-CEP?

  • March 6, 2023
  • 1 reply
  • 937 views

I'm a beginner writing some code through Adobe-CEP.

I select a clip on a particular video track to configure a code that changes the text inside the clip.

I've succeeded in choosing a graphic clip for subtitles.
Through [targetClip.components], I checked that the contents of the clip contain the text I want to modify in the item "instanceName".

Like {"displayName":"text", "instanceName":"subtitle"}


So I tried to modify the "instanceName"'s value, but it seems that direct modification is not possible because the components are read-only items.

Is there any way to correct this?

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

>Is it possible to modify the contents of the regular text component, not the .mogrt?


There is no API that provides that functionality.

1 reply

Bruce Bullis
Community Manager
Community Manager
March 6, 2023

Confirming: Your goal is to change the text within an application of a .mogrt, yes? 

If so...

You'll need to check that the trackItem is actually from a .mogrt. Here's how PProPanel does that: 

https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPRO/Premiere.jsx#L1884

Even then, it will only be possible to modify parameter streams that the .mogrt author declared as modifiable.

Participant
March 7, 2023

Thank you very much for your reply

Is it possible to modify the contents of the regular text component, not the .mogrt?

I added text using the "text tool" inside the Premier Pro without using other external mogrt and created a subtitle clip with effects such as shadow.

After that, I would like to change the contents of the text description component inside the subtitle clip through Adobe-CEP, is there any way?

I can select that clip and can select text component but text component's value is not description but font. text description i want change is in components[i].instanceName.

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
March 7, 2023

>Is it possible to modify the contents of the regular text component, not the .mogrt?


There is no API that provides that functionality.