'module' object has no attribute 'MStatus in maya 2013

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  10 October 2012
'module' object has no attribute 'MStatus in maya 2013

I was trying to build a plugin in python for maya, it went fine with maya 2010 but when I tried maya 2013 i got this erro...
>> compute
// Error: 'module' object has no attribute 'MStatus'
# Traceback (most recent call last):
#   File "E:/Program Files/Autodesk/Maya2013/bin/plug-ins/sineNode.py", line 39, in compute
#	 return OpenMaya.MStatus.kSuccess
# AttributeError: 'module' object has no attribute 'MStatus' // 

I am guessing Autodesk changed something in the API ..
  10 October 2012
In Maya 2011, MStatus was removed from the Maya Python API.

Quote: No MStatus class

We have removed the MStatus class. Python exceptions must be used instead of MStatus. See Error Conditions and Exceptions versus MStatus for more information.

Source: http://autodesk.com/us/maya/2011hel...umber=d0e679866
  10 October 2012
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 12:27 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.