I'm trying to write a custom Maya node in Python. Some of the inputs to my node algorithm are images (like height maps). Is there a way to create an image node attribute (whether input or output)?
Right now I'm just using the filenames of the images as string attributes, something like:
MyCustomNode.inImageFilename = tAttr.create("imageName", "i", OpenMaya.MFnData.kString, stringDataObj)
However, I think it'd be much nicer if I could actually display the input image as an input in the node editor. Is there a way to do this?