Notifications
Clear all

[Closed] check if object has deformation animation

The title says it all. How do I check in a script if an object has deformation animation.

2 Replies

what is the deformation animation? are you asking about point animation?


fn hasPointAnimation node = isvalidnode node and
(
   (c = node.baseobject[#master_point_controller]) != undefined and numkeys c.controller > 0
)

Thanks for the reply Denis, I was out of internet access for the weekend.

Well basically any modification of any vertex position in time. It can be cloth, skinned mesh, skinwrapped mesh, vertex animation in edit poly modifier,…

The goal is to see which objects need to have their mesh deformation cached during export. I am writing a script that emulates the exocortex alembic exporter with the option flatten hierarchy (or something like that). I bake out the position rotation and scale animation in world space and apply pointcache to cache the deformations before export (because export selected exports bones in the skin modifier as well, I need to delete the skin modifier too).

Thanks in advance.