very Slow SopCharacterImport (convert to agent / sort roots)

   975   3   2
User Avatar
Member
9 posts
Joined: 3月 2014
オフライン
Hello,

I have a kinefx rig which is failing to be parsed into USD via the sop character importer. I've narrowed it down to the sop character importer > convert to agent > transfer pose > sort roots node. Specifically the function:

getdescendants(0, pt, /* maxdepth */ -1,  all_children, all_parents);

I can find zero documentation for this function.

The rig I'm using is for splitting a product up, and has quite a few joints right at the end of the chain:

On the attached image the green blob at the bottom shows where I've fanned them out so you can better see how the parenting works i.e. all parented to a single joint. The green blob at the top is the root.

If I remove these fanned joints then everything works as expected. as soon as they're there the function never completes (it's run for over an hour, and still nothing - also, even if it did, this is far from ideal as I believe it would need to compute per frame).

Can anyone suggest anything I can do to get decent performance back.

Many thanks,

Jules
Edited by Jules Stevenson - 2025年1月6日 09:54:33

Attachments:
Screenshot 2025-01-06 144205.png (2.5 MB)

User Avatar
Member
9 posts
Joined: 3月 2014
オフライン
For anyone else ever running into this, I seemed to have found a not very technical workaround to this: Since there's only one root, I just set the max depth in the function to 1 and everything works...

cheers,

Jules
User Avatar
スタッフ
793 posts
Joined: 10月 2012
オフライン
That sounds like a bug if it's not terminating - are you able to submit that example skeleton to support? I wonder if there's something invalid in the hierarchy causing issues

Regardless, I think that particular node is actually unnecessary in this case since it's only required when the Agent Pose from Rig node has Root Transform set to "Transfer to Primitive Transform" and the Root Joint parameter is empty.
User Avatar
Member
9 posts
Joined: 3月 2014
オフライン
Have submitted, thanks
  • Quick Links