Hi,
In Photoshop, when I use Layer.parent the object returned is always a HostObject.
Is there anyway I can check if a Layer's parent is type LayerSet or Document?
For example:
var l:* = layer.parent;
if (l is LayerSet) { // do something; }
if (l is ArtLayer) { // do something different}
Maybe my question was not clear.
I really need to know how can I access a Layers parent (either if it's the Document itself or an ArtLayer) from CS Extension Builder.
Whenever I read the property .parent from a Layer I get a HostObject in return that I can't cast as Layer (that's the error #1034)
Is there anyway I can do:
var pl:* = myLayer.parent;
if (pl is LayerSet) {
// do something
} else if (pl is Document) {
// do something else
}
or is it a bug?
Thanks a lot.
North America
Europe, Middle East and Africa
Asia Pacific