Copy link to clipboard
Copied
This code gets the current value of the "Quelltext" propertie:
$.write(app.project.activeSequence.videoTracks[1].clips[0].components[3].properties[0].getValue());
If the current text is "Reddit Place" it only returns:
Đ
Is there any way how I can edit the text of an textlayer? Or is this impossible?
thx
Ahh. The API was intended for use with AE-created .mogrts.
Copy link to clipboard
Copied
https://community.adobe.com/t5/premiere-pro-discussions/reading-text-layer-in-clip/m-p/9285533
dunno if this is done in the latest updates, refer back to Adobe Staff this is API related
Copy link to clipboard
Copied
I´ll ask them.
thx
Copy link to clipboard
Copied
That suggests that you're attempting to access the source text of a .mogrt created in PPro. The API was created to support modifying .mogrts created in AE.
Confirming: If you use the PProPanel sample code to import the .mogrt from the /PProPanel/payloads directory, it works correctly, yes?
https://github.com/Adobe-CEP/Samples/blob/1c08d2c74b7ae7c1cd418fab4578c080a3241a1b/PProPanel/jsx/PPR...
Copy link to clipboard
Copied
As far as I know is an buildin Text Layer is no mogrt made in PPro. So I don´t have an .mogrt file to test it.
Copy link to clipboard
Copied
Ahh. The API was intended for use with AE-created .mogrts.
Copy link to clipboard
Copied
So if I understand correctly, is there no way at all to edit the text of a PPro text layer with the API?
Copy link to clipboard
Copied
As long as the source of that text was an AE .mogrt, it is very much possible to edit source text, and many shipping panels do so.