Addon ID

  • gltfstatic

Info

Statistics

  • Download count221 total downloads
  • Latest download count 88 downloads of latest version
  • Average download count2 downloads per day average

Owners

A list of all Actions, Conditions and Expressions supported in this addon.

glTF

  • Actions

    {my} load model from {0}

    Load a glTF model from a URL.

    {my} set rotation to ({0}, {1}, {2})

    Set the rotation of the model.

    {my} set uniform scale to {0}

    Set uniform scale for all axes. Applied via transform matrix (GPU efficient).

    {my} set scale to ({0}, {1}, {2})

    Set non-uniform scale per axis. Applied via transform matrix (GPU efficient).

    {my} set workers {0}

    Enable or disable worker threads for transform calculations.

    {my} set mesh {0} {1}

    Set the visibility of a mesh by name.

    {my} set mesh at index {0} {1}

    Set the visibility of a mesh by index.

    {my} show mesh {0}

    Show a mesh by name.

    {my} hide mesh {0}

    Hide a mesh by name.

    {my} show all meshes

    Make all meshes visible.

    {my} hide all meshes

    Hide all meshes.

    {my} set rotation quaternion to {0}

    Set rotation using a quaternion from JSON string.

    {my} set rotation quaternion to ({0}, {1}, {2}, {3})

    Set rotation using quaternion components (x, y, z, w).

  • Conditions

    {my} model is loaded

    True if the glTF model has finished loading.

    On {my} model loaded

    Triggered when the glTF model finishes loading successfully.

    On {my} model load error

    Triggered when the glTF model fails to load.

    {my} is using workers

    True if worker threads are being used for transform calculations.

    {my} mesh {0} is visible

    True if the mesh with the given name is visible.

    {my} mesh at index {0} is visible

    True if the mesh at the given index is visible.

  • Expressions

    RotationX

    Get the current X rotation.

    RotationY

    Get the current Y rotation.

    RotationZ

    Get the current Z rotation.

    ScaleX

    Get the current X scale factor.

    ScaleY

    Get the current Y scale factor.

    ScaleZ

    Get the current Z scale factor.

    WorkerEnabled

    Returns 1 if workers are enabled, 0 otherwise.

    WorkerCount

    Get the number of active worker threads.

    TotalVertices

    Get the total number of vertices in the model.

    MeshCount

    Get the number of meshes in the model.

    MeshNames

    Get a JSON array of all unique mesh/node names.

    MeshNameAt

    Get the mesh/node name at the given index.

    RotationQuaternion

    Get the rotation quaternion as JSON: {"x":0,"y":0,"z":0,"w":1}

    QuatX

    Get the quaternion X component.

    QuatY

    Get the quaternion Y component.

    QuatZ

    Get the quaternion Z component.

    QuatW

    Get the quaternion W component.

Animation

  • Actions

    {my} play animation {0}

    Play an animation by name.

    {my} play animation at index {0}

    Play an animation by its index (0-based).

    {my} stop animation

    Stop the current animation and keep the current pose.

    {my} pause animation

    Pause the current animation.

    {my} resume animation

    Resume a paused animation.

    {my} set animation time to {0}

    Jump to a specific time in the current animation.

    {my} set animation speed to {0}

    Set the playback speed multiplier (1 = normal speed).

    {my} set animation loop {0}

    Set whether the animation should loop.

  • Conditions

    {my} animation is playing

    True if an animation is currently playing.

    {my} animation is paused

    True if an animation is currently paused.

    {my} has animation {0}

    True if the model has an animation with the given name.

    On {my} animation finished

    Triggered when a non-looping animation finishes playing.

  • Expressions

    AnimationTime

    Get the current animation playback time in seconds.

    AnimationDuration

    Get the duration of the current animation in seconds.

    AnimationName

    Get the name of the currently playing animation.

    AnimationCount

    Get the number of animations in the model.

    AnimationNameAt

    Get the name of the animation at the given index.

    AnimationSpeed

    Get the current animation playback speed multiplier.

    AnimationProgress

    Get the animation progress as a value from 0 to 1.

    AnimationNames

    Get a JSON array of all animation names.

Bones

  • Conditions

    {my} has bone {0}

    True if a bone or node with the given name exists.

  • Expressions

    BoneX

    Get the world X position of a bone/node.

    BoneY

    Get the world Y position of a bone/node.

    BoneZ

    Get the world Z position of a bone/node.

    BoneAngle

    Get the 2D angle (Z rotation) of a bone/node in degrees. Useful for aligning 2D sprites.

    BoneRotationX

    Get the X rotation of a bone/node in degrees.

    BoneRotationY

    Get the Y rotation of a bone/node in degrees.

    BoneRotationZ

    Get the Z rotation of a bone/node in degrees.

    BoneNames

    Get a JSON array of all bone/node names.

    BoneCount

    Get the number of bones/nodes in the model.