Message 1 of 1
MPxNode.setMPSafe has incorrect help

Not applicable
04-04-2019
03:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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