Updating mesh after bone rotation

MakeHuman python API, python plugins, etc

Moderator: joepal

Re: Updating mesh after bone rotation

Postby ShatteredEssence » Wed Jun 14, 2017 1:17 pm

AndyM wrote:This part in skeleton.setPose() cause me trouble. It takes the local pose and transform it to another orientation. Which pose matrix is the right one for that function?

Code: Select all
# Calculate rotations
bone.matPose[:3,:3] = poseMats[bIdx,:3,:3]
invRest = la.inv(bone.matRestGlobal)
bone.matPose = np.dot(np.dot(invRest, bone.matPose), bone.matRestGlobal)


sorry for diggin. But have you found a solution?
ShatteredEssence
 
Posts: 13
Joined: Mon Jun 12, 2017 12:14 pm

Previous

Return to Python scripts

Who is online

Users browsing this forum: No registered users and 0 guests

cron