Hey I’m using this script
from mgear.maya import rigbits
import os
import pymel.core as pm
class EyeRigger(object):
def __init__(self):
# Define paths for eye config files
self.left_eye_path = r"D:\st_dd_ghatokach\scripts\EyeL.eyes"
self.right_eye_path = r"D:\st_dd_ghatokach\scripts\EyeR.eyes"
def rig_eyes(self):
"""Main function to rig both eyes"""
# Rig left eye if config exists
if os.path.isfile(self.left_eye_path):
rigbits.eye_rigger.eyesFromfile(self.left_eye_path)
pm.displayInfo("Successfully rigged left eye")
else:
pm.displayWarning(f"Left eye config not found at: {self.left_eye_path}")
# Rig right eye if config exists
if os.path.isfile(self.right_eye_path):
rigbits.eye_rigger.eyesFromfile(self.right_eye_path)
pm.displayInfo("Successfully rigged right eye")
else:
pm.displayWarning(f"Right eye config not found at: {self.right_eye_path}")
# Create instance and run the eye rigger
eye_rigger = EyeRigger()
eye_rigger.rig_eyes()
this is a script for automatically set the eyes when building the Rig, but there is some error