natiny_script_open_animator

C
void natiny_script_open_animator(NatinyScript script);

Makes the Lua API for animation playback and blending available as natiny.animator in the specified state.

Parameters

Name Type Description
script NatinyScript State whose natiny module receives the animator table

Example

C
natiny_script_open_std(script);
natiny_script_open_animator(script);
if (natiny_script_run(script, source) != NATINY_SCRIPT_OK)
    return 1;

Here, source may contain:

Lua
local natiny = require("natiny")
assert(natiny.animator ~= nil)