On 03/01/2018 at 08:44, xxxxxxxx wrote:
Hi,
I'm currently trying to write a ShaderData plugin that, at render time, retrieves a string from an object's user data (or alternatively, a custom TagData), and uses that string (appended to a filepath) to return a bitmap specific to the object. I'm envisioning this working similarly to the MoGraph Color Shader, where the data used during rendering comes from the object, and the data reference is relative, meaning the same shader can be used on multiple objects with different results. Is this possible with PYTHON? Is a ShaderData plugin the best way to go about this and, if so, how do I access the object's data from the shader?
Thanks,
Ben