Skip to content

Instantly share code, notes, and snippets.

View CouriersRyan's full-sized avatar

Ryan Zhang CouriersRyan

View GitHub Profile
@CouriersRyan
CouriersRyan / fastAndDirtyMirror.py
Last active January 5, 2023 20:39
Maya Mirror using the Manipulator Pivot
import pymel.core as pm
# Fast and Dirty Mirror allows for an expanded version of the default Maya mirror tool.
# Notable differences:
# Rotate from manipulator pivot instead of object pivot. F&D Mirror uses the pivot you see on screen instead of the object pivot like in default Maya.
# While this is not very different when selecting whole meshes, it is very impactful when trying to mirror individual faces or subcomponents of meshes
# as it allows for use of the actual pivot on screen instead of the object's pivot which you can't see or manipulate unless you select the object itself.
#
# Rotation settings from the menu. Default Maya mirror requires you to go into the manipulator tool to modify the rotation. Here you can set a fixed value.
# Does not support making the mirror an individual instance or copy