Layer Styles in CS4

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Yenaphe
Posts: 84
Joined: February 3rd, 2009, 6:30 pm
Location: Paris - France
Contact:

I'm working on an XML exporter for CS4, and while parsing and analysing the layers, all the property groups are always exported, including the Layer Style group. No matter if I have layer styles on my layer, all the properties for all layer styles are always exported.

I would like to know if there is a way to know if a layer have Layer Style or not, so I can avoid exporting unnecessary data.
Yenaphe
Posts: 84
Joined: February 3rd, 2009, 6:30 pm
Location: Paris - France
Contact:

Okay, so after knocking my head against walls I've found a workaround.

I do a try/catch with myProperty.selected = true. When it fails it means that the property cannot be set to true because it's parent or itself is hidden.

Not really beautiful, but at least, it works... for now.
Post Reply