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

Can I fold/unfold layerSets with script?

Guest
Feb 15, 2011 Feb 15, 2011

Copy link to clipboard

Copied

Hi


I want to know if it is possible to fold and unfold a layerset with a script (js).

I wrote a script that create a lot of layers with layerSets.

I want the same thing to happen as when you click the tiny triangle besides a layerset.

Thank you.(*´∀`*)ノ″

Nakamori

TOPICS
Actions and scripting

Views

1.1K

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 1 Correct answer

Valorous Hero , Feb 15, 2011 Feb 15, 2011

Votes

Translate

Translate
Adobe
Valorous Hero ,
Feb 15, 2011 Feb 15, 2011

Copy link to clipboard

Copied

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
Guest
Feb 15, 2011 Feb 15, 2011

Copy link to clipboard

Copied

Thank you for information!

I got it!

ヽ(*⌒∇⌒*)ノ::・'゚☆。.::・'゚★。.::・'゚☆。ワーイ!!

Nakamori

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
Contributor ,
Apr 15, 2016 Apr 15, 2016

Copy link to clipboard

Copied

Hi Paul,

The link is no longer live. Please share Your knowledge in this topic! I would like to restore the folded/unfolded state of my layerSets after script run.

Thanks,

Oliver

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
Guide ,
Apr 15, 2016 Apr 15, 2016

Copy link to clipboard

Copied

There is a script here buliarca's scripts BCM Tools

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
Contributor ,
Apr 15, 2016 Apr 15, 2016

Copy link to clipboard

Copied

LATEST

SuperMerlin, You saved me again.

After watching the function closeGroup() step by step in ExtendScript toolkit debugger, I realized the trick is if we "ungroup" and "regroup" the layerSet, it will be created as folded. Nice workaround!

Thank You!

Oliver

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