Module sk_animation

Functions

build_armature (animation_nodes)
export_animation (animation, armature, name_hint, file_suffix, animation_file_suffix)
filter_animations_for_armature (armature, animations)
export_armature (armature, gfx_reference_or_nil, name_hint, file_suffix)

Tables

Clip

Class Armature

Armature:has_node (Node)
Armature:get_parent_bone (Node)


Functions

build_armature (animation_nodes)

Parameters:

  • animation_nodes {sk_scene.Node,...}

Returns:

    Armature
export_animation (animation, armature, name_hint, file_suffix, animation_file_suffix)

Parameters:

Returns:

    Clip the exported clip object use sk_definition_writer.reference_to(clip) to reference in other data
filter_animations_for_armature (armature, animations)

Parameters:

  • armature Armature
  • animations {sk_scene.Animation,...}

Returns:

    {sk_scene.Animation,...}
export_armature (armature, gfx_reference_or_nil, name_hint, file_suffix)

Parameters:

  • armature Armature
  • gfx_reference_or_nil sk_definition_writer.RefType or nil
  • name_hint string
  • file_suffix string

Returns:

    table

Tables

Clip

Fields:

  • nFrames number
  • nBones number
  • frames sk_definition_writer.RefType
  • fps number

Class Armature

Armature:has_node (Node)

Parameters:

  • Node sk_scene.Node

Returns:

    boolean
Armature:get_parent_bone (Node)

Parameters:

  • Node sk_scene.Node

Returns:

  1. sk_scene.Node or nil
  2. number bone_index|nil
generated by LDoc 1.4.6 Last updated 2022-12-30 12:30:52