OpenMaya plugin use texture as color input
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey,
I'm trying to write a plugin that takes the color out from a file texture as input.
I'm using the new openmaya api in python and just cant get it to work even just setting the output to the input just results in all black pixels, maybe im doing something wrong:
I'm doing the following:
OpenMaya.MFnNumericAttribute()
numeric_attr_fn.createColor(...)
then taking the input asFloatVector()
and setting the output with setMFloatVector(...)
I also tried adding UV coordinates which seemed to do something as it's now calling compute for each pixel it seems but still just outputs (0,0,0).
anybody have experience with this? thanks!