Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
camb  
#1 Posted : Wednesday, September 5, 2007 10:29:26 AM(UTC)
camb

Rank: Member

Groups: Member
Joined: 8/26/2007(UTC)
Posts: 7

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:

Code:
 0
 |
 +-1
 |
 +-2
 |  |  
 |  +-3
 |  |
 |  +-4
 |
 +-5

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

Edited by user Monday, December 17, 2007 1:01:11 PM(UTC)  | Reason: Not specified

Alex Kon  
#2 Posted : Wednesday, September 5, 2007 12:47:17 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello Cameron,

Unfortunately Advanced PSD Add-on doesn't extract layers tree information. PSD content is accessible just as a plain list of layers. If you have control over the source PSD file you can encode tree structure information into the names of the layers for later reconstruction. But for arbitrary input files there is no way to reconstruct the layers tree.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.