Skip to content

hm5-types (source format) / PsdPiece

Interface: PsdPiece ​

A sub-layer's Photoshop layer (BitmapSubLayer.psd).

Properties ​

PropertyTypeDescription
pathstringthe layer's path in the file: group names and its own name joined by "/" ("Body/Arm L"); same-named siblings get " #2", " #3" … from the top; a "/" inside a name is written "∕". Masks / backgrounds made from a layer add "#mask" / "#vmask" / "#background".
xnumberwhere the layer's pixels' top-left was in the file at the last import / update (stage units of the symbol, artboard corner = 0, 0): an update moves the pixels by how far this moved, so keys stay.
ynumber-

HereSplash — 2D animation for the web