Hi,
I can’t seem to get the eye rigger to work when using manual vertex corners in 2020.1 mgear 3.5.1. It seems to be a pymel issue, but I’m not sure if it’s just me. I’ve checked a couple of machines in the studio with clean maya/mgear installs.
I get an error:
// Error: root : Uncaught exception
Traceback (most recent call last):
File “C:\Users\conrad\Documents\maya\mgear\mgear_3.5.1\scripts\mgear\rigbits\facial_rigger\eye_rigger.py”, line 1280, in build_rig
rig(**lib.get_settings_from_widget(self))
File “C:\Users\conrad\Documents\maya\mgear\mgear_3.5.1\scripts\mgear\rigbits\facial_rigger\eye_rigger.py”, line 147, in rig
npw = normalPos.getPosition(space=‘world’)
File “c:\Program Files\Autodesk\Maya2020\Python\lib\site-packages\pymel\core\general.py”, line 3167, in getattr
raise AttributeError, “%r has no attribute or method named ‘%s’” % (self, attr)
AttributeError: Attribute(u’body_geoShape.pnts[3088]’) has no attribute or method named ‘getPosition’ //
I’ve tracked it down to the getPosition method for the MeshVertex class? Forgive my lack of pymel.
With a simple polyCube in scene, this snippet extracted from eye_rigger.py returns a vtx position for me in 2018.5, but throws an error in 2020.1
import pymel.core as pm
extCorner = ‘pCube1.vtx[5]’
normalPos = pm.PyNode(extCorner)
npw = normalPos.getPosition(space=‘world’)#normalPos.connectedEdges()#
print npw
2018:
[0.5, 0.5, -0.5]
2020:
Error: MayaAttributeError: file c:\Program Files\Autodesk\Maya2020\Python\lib\site-packages\pymel\core\general.py line 2443: Maya Attribute does not exist (or is not unique):: u’pCube1.vtx[5]’ #
Anyone else run into this issue? I’ve thought about rejigging the eye_rigger to replace the pymel .getPosition with cmds.pointPosition
Thanks.