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

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

Explorer ,
Feb 26, 2020 Feb 26, 2020

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 !!!!

TOPICS
Scripting
1.8K
Translate
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 1 Correct answer

Community Expert , Feb 26, 2020 Feb 26, 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.

Translate
Valorous Hero ,
Feb 26, 2020 Feb 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
Translate
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
Advocate ,
Feb 26, 2020 Feb 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.

Translate
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 ,
Feb 26, 2020 Feb 26, 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.

Translate
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
Explorer ,
Feb 26, 2020 Feb 26, 2020

Thanks All for your help...

Translate
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 ,
Nov 07, 2022 Nov 07, 2022
LATEST

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);

 

Translate
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