chinedufn / psd

A Rust API for parsing and working with PSD files.
https://chinedufn.github.io/psd
Apache License 2.0
265 stars 40 forks source link

Get layer of sub-sub-sub...-groups #44

Closed namse closed 1 year ago

namse commented 1 year ago

Hi! Thank you for great crate!

I have a psd file which has nested layer groups(group in group).

Is there any change to get sub-groups of a group?

namse commented 1 year ago

Ok, I found the way.

  1. psd.groups() returns all groups, even the sub groups.
  2. group.parent_id gives us parent group id if group is sub-group.

GREAT~!