Moderator: coordinators


VeraLapsa wrote:Is there a way to do this via a python script?
I have a scene that has over 100 meshes in it that I imported from a obj file.
They all have textures set but I need to set the material to Matte and set the Diffuse color to use the texture that's already there.
I'm trying to familiarize my self with Blender's API but LuxRender has, as far as I can see, very few ops I can run.

Abel wrote:VeraLapsa wrote:Is there a way to do this via a python script?
Sure, but someone would have to write it first.
I have a scene that has over 100 meshes in it that I imported from a obj file.
They all have textures set but I need to set the material to Matte and set the Diffuse color to use the texture that's already there.
I'm trying to familiarize my self with Blender's API but LuxRender has, as far as I can see, very few ops I can run.
I'm glad I'm not the only one in this situation; I would really like LuxRender to treat the first texture that is found on existing materials as the diffuse map. And talking about the way LuxBlend initializes materials, I'd also much prefer a glossy material with reasonably high roughness instead of matte - in practice I end up changing all materials from matte to glossy at some point, losing the assignment of textures to the diffuse channel in the process.

Users browsing this forum: No registered users and 0 guests