On 23/09/2017 at 05:50, xxxxxxxx wrote:
Greetings to all! Tell me how you can manage c4d.REFLECTION_LAYER_MAIN_VALUE_ROUGHNESSREAL and c4d.REFLECTION_LAYER_MAIN_VALUE_REFLECTION from python? Beforehand grateful.
I can not understand what's the matter.
self.mat_floor = self.floor.GetTag(5616)[c4d.TEXTURETAG_MATERIAL]
self.mat_floor[c4d.MATERIAL_USE_REFLECTION] = op[ud.IF_ONOFF]
ref = self.mat_floor.GetReflectionLayerIndex(0)
mainid = ref.GetDataID()
self.mat_floor[mainid + c4d.REFLECTION_LAYER_SAMPLING_DIM] = op[ud.IF_DIM]
self.mat_floor[mainid + c4d.REFLECTION_LAYER_SAMPLING_DIM_DISTANCE] = op[ud.IF_DIST]
self.mat_floor[mainid + c4d.REFLECTION_LAYER_SAMPLING_DIM_FALLOFF] = op[ud.IF_FALLOFF]
This code working. I can't used c4d.REFLECTION_LAYER_MAIN_VALUE_ROUGHNESSREAL and c4d.REFLECTION_LAYER_MAIN_VALUE_REFLECTION. What should I do?