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

How to find that layer has group

New Here ,
Mar 29, 2011 Mar 29, 2011

Copy link to clipboard

Copied

hi,

while writing my own plug-in, I need  to know that group name of  layers i.e.

which layer belong to which group. And whether the  selected element is layer or group

because layer and group can have same name.so that there must be a way to identify this.  

I used the following  code to know whether layer has group or not --

    SPErr         error           =  kSPNoError ;

     Boolean      isGroup      =  TRUE ;


     error = PIUGetInfo (classLayer, keyGroup, &isGroup, NULL) ;

code is executing normally sicne I got error = 0.But isGroup is always being 0 (FALSE) regardless of selection

of group or layer.

Can anybody suggest me how solve this issue.

Thank You,

DeepAlone.

TOPICS
SDK

Views

975

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
Adobe
Adobe Employee ,
Mar 29, 2011 Mar 29, 2011

Copy link to clipboard

Copied

You need to look at the entire layer stack and look to see if your layer is between a group start and group end marker. Run the getter plug-in on your document and you will see the layer group start and layer group end keys on the layer information. A layer does not have a key specifically saying that it is part of a group.

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
New Here ,
Mar 30, 2011 Mar 30, 2011

Copy link to clipboard

Copied

LATEST

Thank you very much for your help. I think,I got the answer....

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