Hello
I would like to parent a lot of joints to specific joint based on point attribs. Can I do that?
I saw somewhere that setting parent attrib to ptnum of parent can work. But its not working on my side, maybe I am missing something there.
Thanks
its not working on my side
#include <kinefx_hierarchy.h> int unparent_on_cycle = chi("unparent_on_cycle"); int joints[] = expandpointgroup( 0, "@parent!=-1" ); int success = 1; int failed[]; foreach ( int joint; joints ){ int parent = point( 0, "parent", joint ); int _success = setparent(0, joint, parent, unparent_on_cycle); if(!_success) append(failed, joint); success &= _success; } if(!success) warning("One or more parenting operations has failed.\nPoints %d", failed);