Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi, In the 'Transparency' channel of a material, I need to modify the color. How to read and modify this value with Python ? I already have the material identifier.
You can simply edit the MATERIAL_TRANSPARENCY_COLOR parameter.
MATERIAL_TRANSPARENCY_COLOR
Mat[c4d.MATERIAL_TRANSPARENCY_COLOR]
The parameter stores a c4d.Vector.
You find examples on how to handle materials on GitHub.
I found the solution (I already had this problem but I couldn't remember the right code)
mat [c4d.MATERIAL_TRANSPARENCY_COLOR] = c4d.Vector (1.0, 1.0, 1.0) #color white mat.Update (True, True)