ofer Posted January 11, 2010 Share Posted January 11, 2010 Hi, As Im working with the toon character coming with Houdini, I figure that a very welcome - and pretty simple to implement - functionality, will be to add a "flip pose" button, like the "match FK to IK" buttons. It is pretty cumbersome to copy the values from one hand or leg to the other, one after another. So a "flip legs", "flip arms", "match right arm to left arm" etc., will be a welcome addition to this character. Quote Link to comment Share on other sites More sharing options...
ofer Posted January 11, 2010 Author Share Posted January 11, 2010 Something like this, for example: def flipParms(p1, p2): p1 = p2 = v1 = [i.eval() for i in p1] v2 = [i.eval() for i in p2] for i in zip(p1, v2): i[0].setPending(i[1]) for i in zip(p2, v1): i[0].setPending(i[1]) def flipPose(t): flipParms("right_leg_ctrl", "left_leg_ctrl") flipParms("right_arm_ctrl", "left_arm_ctrl") flipParms("right_hand_ctrl", "left_hand_ctrl") Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.