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
I created a material. I inserted a texture into the COLOR channel. Then, I inserted another texture into the BUMP channel.
Now, I want to insert a texture for the specularity, but I don't know how to create a Layer Reflection (Legacy) I only activated the REFLECTANCE channel with the following code:
mat [c4d.MATERIAL_USE_REFLECTION] = True
Then I want to apply the following values for this layer:
0.5 for REFLECTION_LAYER_MAIN_VALUE_ROUGHNESS 1.0 for REFLECTION_LAYER_MAIN_VALUE_REFLECTION 0.2 for REFLECTION_LAYER_MAIN_VALUE_SPECULAR 1.0 for REFLECTION_LAYER_MAIN_VALUE_BUMP
I suppose that these values must be prefixed by the variable 'mat' which represents the material and also by the id of the layer.
I found the solution to my problem, on the internet, with code samples: https://www.c4dcafe.com/ipb/forums/topic/101805-materials-and-shaders-with-python/