BREAKING CHANGES: Change panthera.create_go and panthera.create_gui functions signature.
Now panthera.create_go(animation_path_or_data, [collection_name], [objects]) instead of panthera.create_go(animation_path, [get_node).
Now panthera.create_gui(animation_path_or_data, [template_name], [nodes]) instead of panthera.create_gui(animation_path, [get_node]).
Animation now can be created with a table with animation data directly. You can load JSON by yourself or load it from lua table.
Instead of get_node parameter, you should pass template/collection name and nodes/objects table. Nodes are created from gui.clone_tree, objects are created from collectionfactory.create.
To migrate to new version, you should modify your code to the new signature, or create animations with panthera.create(animation_path_or_data, adapter, get_node) function. Adapter can be obtained by require("panthera.adapters.adapter_[go|gui]").
Add more examples with playing animations in different scenarios.
Update documentation.
The animation_state table now contains animation_id, instead of animation table data. It will be better to log or pprint the animation state.
Rename file panthera_system to panthera_internal.
Add support for is_editor_only timeline key property
Add support for easing_custom timeline key property
Version v3
panthera.create_go
andpanthera.create_gui
functions signature.panthera.create_go(animation_path_or_data, [collection_name], [objects])
instead ofpanthera.create_go(animation_path, [get_node)
.panthera.create_gui(animation_path_or_data, [template_name], [nodes])
instead ofpanthera.create_gui(animation_path, [get_node])
.get_node
parameter, you should pass template/collection name and nodes/objects table. Nodes are created fromgui.clone_tree
, objects are created fromcollectionfactory.create
.panthera.create(animation_path_or_data, adapter, get_node)
function. Adapter can be obtained byrequire("panthera.adapters.adapter_[go|gui]")
.animation_state
table now containsanimation_id
, instead ofanimation
table data. It will be better to log orpprint
the animation state.panthera_system
topanthera_internal
.is_editor_only
timeline key propertyeasing_custom
timeline key property