Jump to content
Sign in to follow this  
ofer

A suggestion for the toon rig character

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×