extendScript: How you can edit a font in MOGRT
I created a MOGRT in after effect. Simple. It has a text field, as well as the ability to edit the font: size, font itself, and set bold, italic and AllCaps.
When I add this MOGRT to the timeline, I would like to change the font and font size. How can I do this except through a JSON object?
i.e. I can do
getValue(), then
JSON.parce(), replace the necessary parameters,
JSON.stringify()
and apply the changed string to the parameter.
But on some computers (it doesn't matter on macOS or windows) there were problems with inserting multiline text. if it is inserted just through setValue('multilinText') - everything is fine... But how to edit the font size or change the font itself?