Skip to content

Glaxnimate file format

Glaxnimate files are stored as JSON.

The top-level object represents the document, it has the following fields:

nametyperequireddescription
formatFormat MetadatayesDescribes the format used
metadataobjectnoCan contain anything
defsDefsnoDefines assets
animationMainCompositionyesAnimation object

Basic Types

Format Metadata

Object describing the file format.

nametyperequireddescription
generatorstringnoProgram used to create the file
generator_versionstringnoVersion of the program used to create the file
format_versionintyesVersion of the format specs, currently 2

Point

Represents a point in 2D space

nametyperequireddescription
xfloatyesX coordinate
yfloatyesY coordinate

Size

Represents a size

nametyperequireddescription
widthfloatyes
heightfloatyes

Bezier

A polybezier.

nametyperequireddescription
closedboolnoWhether the bezier is closed
pointsarray of Bezier Pointsyes

Bezier Point

nametyperequireddescription
posPointyesVertex Position
tan_inPointyesIncoming tangent (absolute)
tan_outPointyesOutgoing tangent (absolute)
typeintyesSee below for possible values

Point Types:

valuenamedescription
0CornerThe two tangents are independent
1SmoothThe two tangents are on the same line but their length can be different
2SymmetricalThe two tangents are on the same line and have the same length

Gradient Stop

nametyperequireddescription
offsetfloatyesValue in [0, 1] determining the offset of this stop
colorColoryesColor of the stop

Color

A string representing color values, it starts with # and is followed by 2 hexadecimal digits per color component (Red, Green, Blue).

With an optional 2 extra hexadecimal digits to represent transparency.

UUID

String representing a unique identifier, in the form

{00000000-0000-0000-0000-000000000000}

Object Types

Most objects fall in this category, their type is represented by the __type__ attribute.

Each type inherits properties from its parent type.

If a specific property requires a given __type__, you can use one of its sub-types.