Hi,
I read a lot of threads here about this reflection-layer etc....but I didn´t come up with the solution:
I just want to feed the Roughness with an shader in my case a c4d.Xbitmap.
But I have issues to access it because , the console says module has no attribute .....
Here is small code snippet:
mat=doc.SearchMaterial("Mat")
ref_layer=mat.GetReflectionLayerIndex(0).GetDataID()
gloss=op[c4d.ID_USERDATA,2] #just the texture path from userdata
color_gloss=c4d.BaseList2D(c4d.Xbitmap)
color_gloss[c4d.BITMAPSHADER_FILENAME]=gloss
mat[ref_layer + c4d.REFLECTION_LAYER_MAIN_VALUE_ROUGHNESSLINK]=color_gloss #Problem
color_gloss[c4d.BITMAPSHADER_BLACKPOINT]=1
color_gloss[c4d.BITMAPSHADER_WHITEPOINT]=0
mat.InsertShader(color_gloss)
But as I said, Cinema can´t find the Reflection_LAYER_MAIN_VALUE_ROUGHNESSLINK in the c4d module
Also no highlighted code for this ID, even though i added per drag and drop into the code editor....
What I am doing wrong?