Create shapes from Text in .jsx script
Copy link to clipboard
Copied
Is it possible to call this function in JSX? I can't find anything in the current scripting docs, also they're still on CS6, when is it going to be updated for CC?!
I'm looking at a way to transform individual characters from text generated via a JSX script
Thanks!
Copy link to clipboard
Copied
You can use the app.executeCommand(commandID) method to invoke any menu item. The commandID is an integer. Finding the integer is a bit tricky, but you can get it by using app.findMenuCommandId("Create Shapes from Text"). So, in total it would look something like
cmdID = app.findMenuCommandId("Create Shapes from Text");
app.executeCommand(cmdID);
You have to be careful with that code, though because different versions of AE may or may not have the menu command you want. So, you'll probably need to check to see what version of AE you're in first.
I asked a similar question a while back. Check out the thread.
Copy link to clipboard
Copied
Ah quite similar to how you call menu commands in Cinema 4D.
Thanks for the help!

