natiny.animator.get_model

Lua
natiny.animator.get_model(animator) -> model

Returns the model this animator plays on.

Parameters

Name Type Description
animator number Animator handle from natiny.animator.create

Returns

Type Description
number Model handle, or nil when a stale nonzero animator handle no longer resolves

Example

Lua
local model = natiny.animator.get_model(arms)
natiny.model.set_visible(model, false)