Skip to content

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 ​

PropertyTypeDescription
alphanumberwhat shows: own × parents × layers
blendModeBlendModethe blend mode of its layer (inside a symbol: the nearest one that is not "normal")
boundsBounds | nullaxis-aligned box in timeline space
centerPoint | nulllocalBounds' centre in timeline space
childrenObjectInfo[]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] | nullthe four corners of localBounds in timeline space (the turned box: top-left, top-right, bottom-right, bottom-left)
depthnumber0 = on the timeline itself, 1 = inside a group / symbol, …
drawnBoundsBounds | nullbounds plus what its filters draw outside (shadow, glow…)
elementanythe raw document element (read-only)
fill?stringshapes: "RRGGBBAA"
filtersFilter[]its own filters (symbol instances)
idstringelement id (a bitmap layer's picture: the keyframe's image id)
image?objectbitmaps, footage, pictures
image.assetId?string-
image.heightnumber-
image.imageId?string-
image.widthnumber-
keystringunique path: "layerId/elementId[/childId…]"
layerobject-
layer.idstring-
layer.namestring-
layerFiltersFilter[]filters of its layer
localBoundsBounds | nullthe art's box in its own space (before any transform)
localMatrixMatobject space → its parent (the element's own transform)
localTransformTransformlocalMatrix taken apart (what the Transform panel shows)
matrixMatobject space → timeline space (every parent included)
mesh?objectmesh objects: how many points, where each is drawn (object space, flat [x0, y0, …]) and the triangles (index triples)
mesh.pointsnumber-
mesh.trianglesnumber[]-
mesh.warpednumber[]-
name?stringinstance name (symbol instances, text)
opacitynumberits own alpha 0..1
parentstring | nullthe 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?number3D 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.colorstring-
stroke.widthnumber-
symbol?objectsymbol instances
symbol.framenumberthe frame of the symbol this instance shows now
symbol.framesnumber-
symbol.idstring-
symbol.loop"loop" | "playOnce" | "singleFrame"-
symbol.namestring-
text?stringtext objects
transformTransformmatrix taken apart: position, rotation, scale, skew on the timeline
typeObjectType"line" = a stroke-only shape; "picture" = a bitmap layer's picture
znumberposition in paint order among its siblings (0 = bottom)
zDepth?number-

HereSplash — 2D animation for the web