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:
- sk_definition_writer.RawType model
- 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:
- 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:
- name string
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:
- node_name string
- position_keys {Vector3Key,...}
- rotation_keys {QuaternionKey,...}
- scaling_keys {Vector3Key,...}
- Animation
-
Fields:
- name string
- duration number
- ticks_per_second number
- channels {Channel,...}