Hi,
I'd like to write out a custom image file using the MImage class, and
I'm having problems adding the data to the image.
This is the outline:
--
import maya.OpenMaya as om
img = om.MImage()
img.create (200, 200, 4, 1)
charPixelPtr = img.pixels()
...
img.writeToFile('filename.tif','tif')
--
I was trying to use MScriptUtil.setCharArray to write the data into the
charPixelPtr but its just a stab in the dark, I don't have a clue how to
interpret the data. Do you have any examples or pleasant MImage
experiences that you can share?
Cheers,
Szabolcs
--
http://groups.google.com/group/python_inside_maya