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

How to hide the layer content?

Guest
Jul 23, 2009 Jul 23, 2009

Hi,

     I am trying to hide the layer content using Adobe api. How to achieve the same?.

     I knew how to hide layer using api (sAILayerSuite->SetLayerVisible(layer,false). Is there any api like sAILayerSuite->SetLayerContentVisible(layer,false)?. 

     Can you any one help?. Quick reply would be highly appreciated.

Regards,

Avudaiappan

TOPICS
SDK
1.4K
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
Adobe
Guide ,
Jul 23, 2009 Jul 23, 2009

Setting a layer's visibility is the only way I know of to hide a layer's content, short of setting the visibility flag of each art object on a layer to false. If that doesn't accomplish what you want, I'm not sure how to help you. Can you explain what you need? Maybe I'd have another suggestion if I could understand why just hiding the layer doesn't do the trick.

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
Enthusiast ,
Jul 24, 2009 Jul 24, 2009
LATEST

As Andrew said, you could do a recursive treewalk of the layer's content and set each visibility flag of each Object. And so you will keep the tree structure and all content will be invisble.

Thomas.

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