Hi,
Given a skeleton (kineFX) is there an easy way to create a per point (joint) attribute that contains an array of all it's children joints (indices or names)?
Thanks!
=e
How to find all children's of a "joint" ?
834 2 1-
- erikmlv
- Member
- 11 posts
- Joined: May 2018
- Offline
-
- gorrod
- Member
- 33 posts
- Joined: Nov. 2016
- Offline
You could include the kinefx_hierarchy.h file and use the getchildren function to get immediate children or getdescendants to get all descendents.
This header file and other useful kinefx functions should be found here $HFS/packages/kinefx/vex/include
#include <kinefx_hierarchy.h> i[]@children = getchildren(0, @ptnum); int maxdepth = 1000; i[]@descendants = getdescendants(0, @ptnum, maxdepth);
This header file and other useful kinefx functions should be found here $HFS/packages/kinefx/vex/include
Edited by gorrod - Jan. 9, 2025 18:02:02
-
- erikmlv
- Member
- 11 posts
- Joined: May 2018
- Offline
-
- Quick Links