pCaptPath access problem

   2823   4   0
User Avatar
Member
4 posts
Joined: 8月 2011
Offline
Good day))

I'm working now under python script to export rigged mesh to some binary format. And I met some little problem here.

I need to now what region and what weight has point. This I can found in pointAttribute - pCapt. But instead of path to bone SOP I get only index of this region.

I've read that this SOPs path I can find in pCaptPath list. But it is always empty. And doesnot contain any paths))…. So can someone tell me what I'm doing wrong and what I need to do to read this data.

Thank you.
User Avatar
Member
7871 posts
Joined: 7月 2005
Offline
Have you tried using hou.Geometry.stringListAttribValue(“pCaptPath”)?
User Avatar
Member
4 posts
Joined: 8月 2011
Offline
Thank you for your answer)

But yes)) I did it. And unfortunately I always receive empty list. By the way I can't see any info in pCapthPath column in Details tab.

>>> geo
<hou.Geometry in /obj/tube_object1/tube_object1_capture1>
>>> geo.stringListAttribValue(“pCaptPath”)
('', '')
User Avatar
Member
7871 posts
Joined: 7月 2005
Offline
Oops, sorry … Here you go:

>>> attrib = hou.node('/obj/torus_object1/torus_object1_capture1').geometry().findGlobalAttrib(“pCaptPath”)
>>> attrib.strings()
('chain_bone3/cregion 0', ‘chain_bone2/cregion 0’, ‘chain_bone1/cregion 0’)
User Avatar
Member
4 posts
Joined: 8月 2011
Offline
Oo!!
Great! It works!))

Thank you for your help.
  • Quick Links