Closed GoogleCodeExporter closed 9 years ago
I have the same problem accessing nCloth nucleus nodes, but I think the issue
is with Maya 2012's OpenMaya (not PyMEL). I can get the object reference, but
if I try to do anything *with* the object I'll get this MObjectHandle KeyError.
My work-around was to keep the nucleus as a string instead of getting the
object, like this:
# Broken code
nucleus = ls(mel.getActiveNucleusNode(False, True))[0]
nucleus.attr('spaceScale').set(2.5)
# Work-around
from pymel.core import mel
nucleus = mel.getActiveNucleusNode(False, True)
mel.setAttr(nucleus + '.spaceScale', 2.5)
Original comment by jed.hunsaker
on 3 May 2011 at 3:21
MNLN-568
BB #386933 : Pymel error for HumanIK objects
Original comment by johncre...@gmail.com
on 28 Jun 2011 at 8:41
fixed in 321ce6c9bc28957c09d94c8d736b5de68ca1d850 thanks to patch submitted by
Jed Hunsaker
Original comment by elron...@gmail.com
on 29 Sep 2011 at 6:04
The patch, BTW, had nothing to do with my workaround above. In fact, my
workaround stopped working on a different machine and I had to change it anyway.
Original comment by jed.hunsaker
on 29 Sep 2011 at 7:38
Original issue reported on code.google.com by
softimag...@gmail.com
on 11 Apr 2011 at 4:52