Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Layer Shader Layers

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 637 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          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)

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

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

              Thank you

              1 Reply Last reply Reply Quote 0
              • First post
                Last post