Unable to instantiate USD object with a skeleton component

Hi,

I’m trying to instantiate a person in a USD file using rep.randomizer.instantiate() but I couldn’t seem to have the object showing in the scene. No errors reported.

Looking inside the USD file, I found a skeleton component that may cause the issue (screenshot below). Everything else (without skeleton) seems to be OK to instantiate.

Just wondering if someone could please advise how to correctly instantiate an object in USD that has a skeleton component.

thank you all.

Hi @BeautifulSummer, rep.randomizer.instantiate() doesn’t inherently treat Skeletons differently compared to other prims. From what you have described, you are trying to sample a prim that contains a skeleton component in it. From the screenshot you have sent, the prim referenced as Emma_ref does seem to contain information about the prim it sampled from.

Note that when you sample a prim, it samples all children prims relative to the top-level prim that was sampled unless specified otherwise. What that means is that any children prims are positioned relative to the position of the reference based on the original prim. If the person seen in the screenshot is not the person expected, the sampled Skeleton itself may be at a different position than the reference you have highlighted. Have you tried highlighting the Skeleton or the SkelRoot to see its location?