Dashboard_avatar
Nov 25, 2009
Post id: 300601 Report Item

I'm not experienced for MAYA API, so I can't find way to my problem...

I make a simple node for my project, and it will load a file.
But, i can't use MImage set...

import maya.OpenMaya as OpenMaya
img = OpenMaya.MImage()
stat = img.readFromFile(myPath)


i write like above, but returned value is

# Error: (kFailure): Unexpected Internal Failure
# Traceback (most recent call last):
#   File "<maya console>", line 3, in <module>
# RuntimeError: (kFailure): Unexpected Internal Failure #


i want to load image file, and connect to outColor attribute.
is there anyone solve my problem?

Dashboard_avatar
Nov 26, 2009
Post id: 300624 Report Item

err?  Whats wrong with a file texture?