Module sk_scene

Functions

export_default_mesh () Generates mesh and animation data from the current scene
nodes_for_type (prefix) Returns a list of nodes with the given string prefix
find_named_argument () Finds a named value in a list of arguments
find_flag_argument () Finds a named value in a list of arguments
node_with_name (name) Returns a node with the given name

Tables

Node A scene node
NodeWithArguments A pairing of nodes and pre parsed node arguments
Vector3Key
QuaternionKey
Channel
Animation


Functions

export_default_mesh ()
Generates mesh and animation data from the current scene

Returns:

  1. sk_definition_writer.RawType model
  2. sk_definition_writer.RawType material
nodes_for_type (prefix)
Returns a list of nodes with the given string prefix

Parameters:

  • prefix string the string prefix to search

Returns:

    NodeWithArguments
find_named_argument ()
Finds a named value in a list of arguments

Returns:

    string or nil
find_flag_argument ()
Finds a named value in a list of arguments

Returns:

    boolean
node_with_name (name)
Returns a node with the given name

Parameters:

Returns:

    Node result

Tables

Node
A scene node

Fields:

  • name string
  • transformation sk_transform.Transform
  • full_transformation sk_transform.Transform
  • parent Node
  • children {Node,...}
  • meshes {sk_mesh.Mesh,...}
NodeWithArguments
A pairing of nodes and pre parsed node arguments

Fields:

  • node Node
  • arguments {string,...} the list is strings produced by splitting the node name by spaces
Vector3Key

Fields:

  • time number
  • value sk_math.Vector3
QuaternionKey

Fields:

  • time number
  • value sk_math.Quaternion
Channel

Fields:

Animation

Fields:

generated by LDoc 1.4.6 Last updated 2022-12-30 12:30:52