I'm trying to register a render swatch generator to trigger maya to execute a custom renderSwatchImage method that generates a swatch for my shader node.
the code I'm using is the follow (http://download.autodesk.com/us/maya/2009h...mple.html"" target="_blank">according to an example in maya 2009 help):
and I keep getting this error message:
I tried to find some sort of pointer conversor, like "OpenMayaMPx.asMPxPtr" method, but no success so far...
I actually found a "OpenMayaUI.MHWShaderSwatchGeneratorPtr" method, which basically is the same as the one I'm using, but with the Ptr in front of it, which would suggest some sort of pointer something... but I'm not sure how to use it or even what it is...
HEEELP!!
-H
PS: I really wish I can make this work whitout going back to C++...