Home Marmoset

Python issue - The attribute value must be a Texture

interpolator
Offline / Send Message
Jerc interpolator
Hi everyone, I was trying a few things with the python API and was building my own script from the "Creating materials from images" sample, but I keep getting a  TypeError: The attribute value must be a Texture error in the console whenever I call setField(field, value).
I noticed the sample throws that same error.

I checked and my value variable contains a string with the path to my file, something like F:\Tests\Bitmaps\material_Base_Color.png

Is there some sepcial formatting that needs to be applied to the path string or am I missing something else?

Thanks!

Replies

Sign In or Register to comment.