Hmm...looks like I tried that on an unreleased version of Maya (and a Debug version too). Just tried again in Maya 2018 and got the same error as you. I'll take a quick look and see if I can figure out what fixed it, but I should warn you that API fixes can sometimes be tricky to get into Updates since those typically have to remain binary compatible.
-Tim On Tue, Dec 4, 2018 at 9:26 AM Marcus Ottosson <[email protected]> wrote: > Wuw! What version of Maya is that, and what OS? I'm on Windows, Maya 2018. > Hadn't considered it might be a version or OS thing, will have a look at > that. > > On Tue, 4 Dec 2018 at 14:14, Tim Fowler <[email protected]> wrote: > >> Not sure what you're hitting. That last line gives me... >> >> om.MFnMatrixData(plug.asMObject()).matrix() >> # Result: maya.api.OpenMaya.MMatrix(((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, >> 1, 0), (0, 0, 0, 1))) # >> > > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CALKD2WpxdzsLdBWBnhSS_cMoxMZ33v4FRQ9P%2BPjiUaB%3Dwi7xtA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
