'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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 10 October 2012   #1
'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
0.841470984808
// 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 ..
 
Old 10 October 2012   #2
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
 
Old 10 October 2012   #3
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 08:02 PM.


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