arm_2jnt_04: wrist align and plane normal #59
The problem is with the calculated normal, which does not take into account the rotation of the wrist.
My vector skills are not very good, so I'll need some help with this. I'm trying to setup a simple reproducible code, where I can visualize the problem and try to solve but I'm hitting a wall already with converting a vector to a rotation/matrix;
import pymel.core as pm from mgear.core import primitive, vector, transform guides = ["arm_L0_root", "arm_L0_elbow", "arm_L0_wrist"] guides = [pm.PyNode(x) for x in guides] positions = [x.getTranslation(space="world") for x in guides] normal = vector.getPlaneNormal(positions, positions, positions)