Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    How to create a layer Reflection (Legacy) ?

    Cinema 4D SDK
    python
    1
    2
    488
    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.
    • KantroninK
      Kantronin
      last edited by Manuel

      Hi

      I created a material.
      I inserted a texture into the COLOR channel.
      Then, I inserted another texture into the BUMP channel.

      Now, I want to insert a texture for the specularity, but I don't know how to create a Layer Reflection (Legacy)
      I only activated the REFLECTANCE channel with the following code:

      mat [c4d.MATERIAL_USE_REFLECTION] = True

      Then I want to apply the following values for this layer:

      0.5 for REFLECTION_LAYER_MAIN_VALUE_ROUGHNESS
      1.0 for REFLECTION_LAYER_MAIN_VALUE_REFLECTION
      0.2 for REFLECTION_LAYER_MAIN_VALUE_SPECULAR
      1.0 for REFLECTION_LAYER_MAIN_VALUE_BUMP

      I suppose that these values must be prefixed by the variable 'mat' which represents the material and also by the id of the layer.

      1 Reply Last reply Reply Quote 0
      • KantroninK
        Kantronin
        last edited by

        I found the solution to my problem, on the internet, with code samples:
        https://www.c4dcafe.com/ipb/forums/topic/101805-materials-and-shaders-with-python/

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