Jump to content

Python Mirror Tool


Recommended Posts

I'm trying to make my own python mirror tool for rigging purpose. I want to mirror on the zy plane. 

What I've tried to far:

transform = node.worldTransform()
mirror_matrix = hou.Matrix4([[-1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]])
mirrored = transform * mirror_matrix

Is leading to this:

Y and X axis are great, but the z Axis is oriented in the wrong direction.

Can anyone help?

Edited by Drughi
Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...