Drughi Posted July 12, 2019 Share Posted July 12, 2019 (edited) 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 node.setWorldTransform(mirrored) Is leading to this: Y and X axis are great, but the z Axis is oriented in the wrong direction. Can anyone help? Edited July 12, 2019 by Drughi Quote Link to comment Share on other sites More sharing options...
Drughi Posted July 13, 2019 Author Share Posted July 13, 2019 Found the solution. Its done by setting the pretransforms. 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.