camb#1821
Hi,
Is there a convenient way to determine the index of a PSD layer's parent layer?
For instance, the root layer would have parent index -1, children of the root would have parent index 0, etc, as follows:
Layer 0, parent = -1.
Layer 1, parent = 0.
Layer 2, parent = 0.
Layer 3, parent = 2.
Layer 4, parent = 2.
Layer 5, parent = 0.
I need this information to reconstruct the layer tree in a calling application.
Thanks,
Cameron
Is there a convenient way to determine the index of a PSD layer's parent layer?
For instance, the root layer would have parent index -1, children of the root would have parent index 0, etc, as follows:
0
|
+-1
|
+-2
| |
| +-3
| |
| +-4
|
+-5Layer 0, parent = -1.
Layer 1, parent = 0.
Layer 2, parent = 0.
Layer 3, parent = 2.
Layer 4, parent = 2.
Layer 5, parent = 0.
I need this information to reconstruct the layer tree in a calling application.
Thanks,
Cameron