Appearance
Export and import scripts / Hm05Script / ObjectInfo
Interface: ObjectInfo
One object at a frame (tweens, motion guides, layer moves applied). "Timeline space" = the coordinates of the timeline you asked about (the stage for the main timeline, the symbol's own space for a symbol).
Properties
| Property | Type | Description |
|---|---|---|
alpha | number | what shows: own × parents × layers |
blendMode | BlendMode | the blend mode of its layer (inside a symbol: the nearest one that is not "normal") |
bounds | Bounds | null | axis-aligned box in timeline space |
center | Point | null | localBounds' centre in timeline space |
children | ObjectInfo[] | groups: their objects; symbol instances: the objects inside at symbol.frame (with deep: false only depth 0 is filled) |
colorEffect? | | { mode: "brightness"; value: number; } | { amount: number; color: string; mode: "tint"; } | { mode: "advanced"; mult: [number, number, number, number]; offset: [number, number, number, number]; } | Flash Colour Effect (symbol instances) |
corners | | [Point, Point, Point, Point] | null | the four corners of localBounds in timeline space (the turned box: top-left, top-right, bottom-right, bottom-left) |
depth | number | 0 = on the timeline itself, 1 = inside a group / symbol, … |
drawnBounds | Bounds | null | bounds plus what its filters draw outside (shadow, glow…) |
element | any | the raw document element (read-only) |
fill? | string | shapes: "RRGGBBAA" |
filters | Filter[] | its own filters (symbol instances) |
id | string | element id (a bitmap layer's picture: the keyframe's image id) |
image? | object | bitmaps, footage, pictures |
image.assetId? | string | - |
image.height | number | - |
image.imageId? | string | - |
image.width | number | - |
key | string | unique path: "layerId/elementId[/childId…]" |
layer | object | - |
layer.id | string | - |
layer.name | string | - |
layerFilters | Filter[] | filters of its layer |
localBounds | Bounds | null | the art's box in its own space (before any transform) |
localMatrix | Mat | object space → its parent (the element's own transform) |
localTransform | Transform | localMatrix taken apart (what the Transform panel shows) |
matrix | Mat | object space → timeline space (every parent included) |
mesh? | object | mesh objects: how many points, where each is drawn (object space, flat [x0, y0, …]) and the triangles (index triples) |
mesh.points | number | - |
mesh.triangles | number[] | - |
mesh.warped | number[] | - |
name? | string | instance name (symbol instances, text) |
opacity | number | its own alpha 0..1 |
parent | string | null | the key of the group / instance it is in; null at depth 0 |
projectedCorners? | [Point, Point, Point, Point] | 3D objects: the four corners of localBounds as drawn (after the perspective; measured as if the object's parent were the scene) |
rotationX? | number | 3D objects (Properties → 3D): rotation about the object's own X / Y axis in degrees, and its depth (positive = further away) |
rotationY? | number | - |
stroke? | object | - |
stroke.color | string | - |
stroke.width | number | - |
symbol? | object | symbol instances |
symbol.frame | number | the frame of the symbol this instance shows now |
symbol.frames | number | - |
symbol.id | string | - |
symbol.loop | "loop" | "playOnce" | "singleFrame" | - |
symbol.name | string | - |
text? | string | text objects |
transform | Transform | matrix taken apart: position, rotation, scale, skew on the timeline |
type | ObjectType | "line" = a stroke-only shape; "picture" = a bitmap layer's picture |
z | number | position in paint order among its siblings (0 = bottom) |
zDepth? | number | - |