Skip to main content
Dreamer Art
Known Participant
February 26, 2020
Answered

A script to collapse property group in effect control - After Effects - Please help !!

  • February 26, 2020
  • 5 replies
  • 1944 views

Hey there

I am new here ..

I am working on a script to collapse panels of property group in Effect control but the problem I search alot about a collapse command ID, methods in property group object and no solution and the command I found work only on property group - layers in Timeline and not effect control .

myLayer.selected = true;

app.executeCommand(2771);

Please Hep !!!!

This topic has been closed for replies.
Correct answer Dan Ebberts

One altrnative that might help, depending on your situation, is to duplicate the effect control, delete the original, and rename the new one to the old name.

5 replies

Participant
November 7, 2022

Hi, it's 2 years too late, but it can help other people.

You can try to execute the command twice. The first finish to expand the properties, and the second collapse it. I had the same problem and it worked for me.

 

app.executeCommand(2771);
app.executeCommand(2771);

 

Dreamer Art
Known Participant
February 27, 2020

Thanks All for your help...

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
February 27, 2020

One altrnative that might help, depending on your situation, is to duplicate the effect control, delete the original, and rename the new one to the old name.

Tomas Sinkunas
Legend
February 26, 2020

There's not much one can help you with.

The only way to collapse properties is by using the command ID you have in your script.

Roland Kahlenberg
Legend
February 26, 2020

The Right Arrow key collapses while the Left Arrow kew uncollapses.

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV