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

After Effects Scripting is there a way to "Save Animation Preset" Methods?

Community Beginner ,
Jan 04, 2020 Jan 04, 2020

Copy link to clipboard

Copied

After Effects Scripting is there a way to "Save Animation Preset" Methods?

<After Effects Scripting Guide> can be carried out in the following to "Animation"->"Apply Animation Preset".

-------------------------------------------------

Layer applyPreset() method

appapp.project.item(index).layer(index).applyPreset(presetName);

-------------------------------------------------

But there's no way "Animation"->"Save Animation Preset".

 

Who knows if there is such a way?

Or script operations by pressed or onClick Methods?

 

TOPICS
Scripting

Views

2.2K

Translate

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

correct answers 2 Correct answers

Community Expert , Jan 08, 2020 Jan 08, 2020

You can use 

app.executeCommand(3075);

But it just simulates the button click, you still have to choose where to save it, but that's the only way to save Animation Presets far as I know. 

Votes

Translate

Translate
Community Beginner , Jan 10, 2020 Jan 10, 2020

app.findMenuCommandId(text) is to get the window menu item numerical ID.
Execution code"app.executeCommand(3075);"then pop up a "dialog".
The numerical ID of 'Save' in it cannot be obtained by app.findMenuCommandId('Save').
But, if there is a way to simulate the keyboard input "C:\Program Files\Adobe\Adobe After Effects CC 2019\Support Files\Presets\a.ffx" and then simulate the "onEnterKey" KeyboardEvent....
Maybe it can be done.It's just a little bit worse!what a pity!

Votes

Translate

Translate
LEGEND ,
Jan 05, 2020 Jan 05, 2020

Copy link to clipboard

Copied

You will likely have to use the executeMenuCommand() function or whatever it is currently named and adress the numerical ID of the UI string. Regardless of this I can't see how this would even be relevant or useful. In order to save a preset some layers or properties have to be selected first, which will require an additional user interaction either way, so nothing is gained by having such a function in a script.

 

Mylenium

Votes

Translate

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
Community Beginner ,
Jan 05, 2020 Jan 05, 2020

Copy link to clipboard

Copied

Thank you for your reply!!
In fact, I am saving the value of "PropertyValueType.CUSTOM_VALUE" property Type.
At present, only. FFX supports value saving of this property Type,For example, "curves"、 "hue / saturation"... The Parameters inside cannot be obtained by script.
So I use "animation" - > "save animation preset" to save.
Then "save animation preset" cannot be operated with script
"Propertyvaluetype. Custom" has become a holy field!!! and there is no way to operate it externally...It's confusing to me!

Votes

Translate

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
Community Expert ,
Jan 08, 2020 Jan 08, 2020

Copy link to clipboard

Copied

You can use 

app.executeCommand(3075);

But it just simulates the button click, you still have to choose where to save it, but that's the only way to save Animation Presets far as I know. 

Votes

Translate

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
Community Beginner ,
Jan 09, 2020 Jan 09, 2020

Copy link to clipboard

Copied

OH!!! This method feels very useful!

Where can I get the UI string numerical ID?

Can this function complete the task in "save animation preset as":?

For example "save", How can I get the "save" UI string numerical ID?

Votes

Translate

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
Community Expert ,
Jan 09, 2020 Jan 09, 2020

Copy link to clipboard

Copied

They change per version, you can look them up with

 
app.findMenuCommandId('Save');
 
Not every button has one though FYI.

 

Votes

Translate

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
Community Beginner ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

app.findMenuCommandId(text) is to get the window menu item numerical ID.
Execution code"app.executeCommand(3075);"then pop up a "dialog".
The numerical ID of 'Save' in it cannot be obtained by app.findMenuCommandId('Save').
But, if there is a way to simulate the keyboard input "C:\Program Files\Adobe\Adobe After Effects CC 2019\Support Files\Presets\a.ffx" and then simulate the "onEnterKey" KeyboardEvent....
Maybe it can be done.It's just a little bit worse!what a pity!

Votes

Translate

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 ,
Jan 17, 2023 Jan 17, 2023

Copy link to clipboard

Copied

Hey, did you ever find a way to make it work?

Votes

Translate

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
Participant ,
Jan 19, 2023 Jan 19, 2023

Copy link to clipboard

Copied

LATEST

Votes

Translate

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