Layer Shader Layers



  • On 01/11/2015 at 13:32, xxxxxxxx wrote:

    After three days working with Python I'm making good progress, but have hit a wall. Any help or suggestions will be greatly appreciated!

    I'd like to add layers to my shader properties and assign images to them....

    I'm having a difficult time figuring how exactly to do this. I'm Working in R16, so possibly this is not supported in this SDK?

    >     ice[c4d.MATERIAL_USE_TRANSPARENCY] = True                 #enable TRANSPARENCY channel
    >
    >     shdT = c4d.BaseList2D(1011123)                                       #sets Layer  to trans texture
    >
    >     ice[c4d.MATERIAL_TRANSPARENCY_BRIGHTNESS] = .77      #use float to set brightness
    >
    >     ice[c4d.MATERIAL_TRANSPARENCY_REFRACTION] = 1.31     #refraction
    >
    >     ice[c4d.MATERIAL_TRANSPARENCY_SHADER] = shdT      
    >
    >     
    >
    > #trying to add to texture: layers here
    >
    >
    >
    >
    >     ice.InsertShader(shdT)
    >
    >     ice.Message(c4d.MSG_UPDATE)
    >
    >     ice.Update(True, True)



  • On 02/11/2015 at 02:00, xxxxxxxx wrote:

    Hello,

    using the API it is only possible to read the existing layers of a Layer shader but it is not possible to add layers or reorder layers. See also "Adding a layer to the mat color channel"

    Best wishes,
    Sebastian



  • On 08/11/2015 at 13:44, xxxxxxxx wrote:

    Thank you Sabastian,

    Do you know if this is resolved in R17?

    Online documentation suggests that there is added support for Layer Shader Layers, and I see the following  function exists:

    LayerShaderLayer.SetParameter()

    Your time is appreciated...

    a)



  • On 09/11/2015 at 01:59, xxxxxxxx wrote:

    Hello,

    as described in the documentation, SetParameter() is used to edit the parameters of an existing layer, not to add a new one. This hasn't changed with R17.

    Best wishes,
    Sebastian



  • On 09/11/2015 at 11:31, xxxxxxxx wrote:

    Thank you


Log in to reply