I'm currently making font selector on my panel with extendscript.
I made MOGRT subtitle form with text properties,
And I've found method below,
var project = app.project; var projectItem = project.rootItem; var slideshowSequence = project.activeSequence; var videoTracks = slideshowSequence.videoTracks; var selectClip = videoTracks.clips; var component = selectClip.getMGTComponent();
now all I have to do is using "setValue()" to change font,
Since there was no official way to change the font, after a lot of brainstorming I came up with some alternatives to changing the font.
01. Use After Effects' setFonts method to create a mogrt that lets you change the font via the system font name.
This will allow you to change the font by entering the system font name in the Essential Graphics panel. (Of course, if you want to read and replace system fonts, you'll need to develop an interface to the extension.)
02. Change the mogrt file to zip and unzip it. And read "definition.json", change fontEditValue from fonteditinfo to other system font name, save and recompress and change extension to mogrt.
You can change the font only if the above process is implemented with node.js and extendscript. Even this, some system fonts are not read well, so some fonts must be added to the array and manually modified system fonts and family fonts.