Skip to main content
July 23, 2009
Question

How to hide the layer content?

  • July 23, 2009
  • 1 reply
  • 1432 views

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

This topic has been closed for replies.

1 reply

A. Patterson
Inspiring
July 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.

Toto RoToTO
Inspiring
July 24, 2009

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.