Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Create shapes from Text in .jsx script

New Here ,
Feb 14, 2014 Feb 14, 2014

Copy link to clipboard

Copied

Screen-Shot-2014-02-14-at-17.39.20.jpg

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!

TOPICS
Scripting

Views

669
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Feb 14, 2014 Feb 14, 2014

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.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 14, 2014 Feb 14, 2014

Copy link to clipboard

Copied

LATEST

Ah quite similar to how you call menu commands in Cinema 4D.

Thanks for the help!

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines