Copy link to clipboard
Copied
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 !!!!
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.
Copy link to clipboard
Copied
The Right Arrow key collapses while the Left Arrow kew uncollapses.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Thanks All for your help...
Copy link to clipboard
Copied
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);