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" ?
846 2 1-
- erikmlv
- Member
- 11 posts
- Joined: 5月 2018
- オフライン
-
- gorrod
- Member
- 33 posts
- Joined: 11月 2016
- オフライン
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 - 2025年1月9日 18:02:02
-
- erikmlv
- Member
- 11 posts
- Joined: 5月 2018
- オフライン
-
- Quick Links