hey guys i was trying to figure out how can i add a joint skeleton to the hierarchy using graph script?
thanks in advance
add joint skeleton via apex edit graph script
574 4 2- patar
- Member
- 280 posts
- Joined:
- Offline
- edward
- Member
- 7725 posts
- Joined: July 2005
- Online
- patar
- Member
- 280 posts
- Joined:
- Offline
- edward
- Member
- 7725 posts
- Joined: July 2005
- Online
I think you're missing some pieces here. The "character" geometry is the entire packed folder geometry.
ExtractCharacterGraph extracts out a "graph" (aka "rig") from the "character" input and just pipes it pack out for convenience so that you can chain things along. ExtractCharacterGraph isn't modifying the "character" at all.
Adding a joint to the character geometry is basically trying to add a joint to the geometry of your "packfolder1" SOP. That clearly cannot work. You can use the FindCharacterElement and UpdateCharacterElement nodes to unpack the skeleton, manipulate it, and then put it back in. If you dive inside these nodes (which are actually subgraphs), you'll see that they're just convenience wrappers on top of sop::unpackfolder and sop::packfolder. In any case, I built a very basic example in the attached hip file (saved in Houdini 20.0.634). In practice, you might be looking to do more of course, but hope that helps!
ExtractCharacterGraph extracts out a "graph" (aka "rig") from the "character" input and just pipes it pack out for convenience so that you can chain things along. ExtractCharacterGraph isn't modifying the "character" at all.
Adding a joint to the character geometry is basically trying to add a joint to the geometry of your "packfolder1" SOP. That clearly cannot work. You can use the FindCharacterElement and UpdateCharacterElement nodes to unpack the skeleton, manipulate it, and then put it back in. If you dive inside these nodes (which are actually subgraphs), you'll see that they're just convenience wrappers on top of sop::unpackfolder and sop::packfolder. In any case, I built a very basic example in the attached hip file (saved in Houdini 20.0.634). In practice, you might be looking to do more of course, but hope that helps!
Edited by edward - March 2, 2024 21:40:58
- patar
- Member
- 280 posts
- Joined:
- Offline
-
- Quick Links