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.
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.
Copy link to clipboard
Copied
Thank you very much for your help. I think,I got the answer....