check if object has deformation animation

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  07 July 2018
check if object has deformation animation

The title says it all. How do I check in a script if an object has deformation animation.
  07 July 2018
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
  07 July 2018
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.
reply share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 02:49 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.