Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

MPxNode.setMPSafe has incorrect help

MPxNode.setMPSafe has incorrect help

Anonymous
Not applicable
724 Views
0 Replies
Message 1 of 1

MPxNode.setMPSafe has incorrect help

Anonymous
Not applicable

I was testing the sample file:

when i noticed this error:

// Error: line 0: SystemError: file C:/Users/Future/Documents/maya/2019/plug-ins/pyBrickShader.py line 195: new style getargs format but argument is not a tuple //

 

trying to find help on setMPSafe 

help(om.MPxNode.setMPSafe)

 

the result:

setMPSafe(...)
setMPSafe(bool) -> self
This method is obsolete. Override MPxNode.setSchedulingType instead.
Set a flag to specify if a user defined shading node is safe for multi-processor rendering

 

the correct method to be overridden is : MPxNode.SchedulingType  NOT setSchedulingtype which doesn't exist anywhere in the devkit

i found the correct help line in the file: MPxAssembly.h

0 Likes
725 Views
0 Replies
Replies (0)