Hi @i_mazlov ,
Excuse me for the lack of research, if I usually check if there were similar cases but I don't think I was able to understand it well, thank you very much for showing me these examples, they were really helpful.
the code you wanted:
import c4d
def ChangeTexturePathOfLayer(layer = c4d.LayerShaderLayer, Vector = c4d.Vector()):
bmpShader = layer.GetParameter(c4d.LAYER_S_PARAM_SHADER_LINK)
bmpShader[c4d.COLORSHADER_COLOR] = Vector
def main():
mat = doc.GetFirstMaterial()
if not mat:
return
shd = mat.GetFirstShader()
if shd.CheckType(c4d.Xlayer):
ChangeTexturePathOfLayer(shd.GetFirstLayer(), c4d.Vector(0.458823, 0.278431, 0.164705))
c4d.EventAdd()
if __name__ == '__main__':
main()
I still don't know what c4d.LAYER_S_PARAM_SHADER_LINK does specifically
Well, within the documentation it is only mentioned that int is allowed as a parameter.
Cheers,
James H.