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 set Roughness texture to material?

    Cinema 4D SDK
    2
    3
    508
    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.
    • C
      Chris Chris
      last edited by Chris Chris

      Hello,

      I want to set in a standard material the four textures Roughness, Reflection Strength, Specular Strength and Bump Strength in C++. Already working is setting the roughness value with REFLECTION_LAYER_MAIN_VALUE_ROUGHNESS and the Layer Color Brightness texture with REFLECTION_LAYER_COLOR_TEXTURE.
      But I can't find the other constants. They are defined in c4d_reflection.h. How to do this?

      Image of the Material

      Kind Regards,
      Chris

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @Chris-Chris, welcome to the plugin cafe forum 🙂
        I invite you to read Forum and Support Guidelines to set up your next topics (don't worry I've done it for this one).

        You posted on the Cineware category however I'm not sure if your question is really about Cineware? But I think more with the C++ SDK of Cinema 4D.
        Cineware is a static library that lets you create and read Cinema 4D without any installation of Cinema 4D.

        Regarding your question, you need to retrieve the ID of the layer and add this LayerID to the symbols from c4d_reflection.h. So I invite you to read Cinema 4D R16 Reflectance channel’s API[URL-REMOVED] or even the C++ documentation about Material Manual - Reflection Layers.

        Cheers,
        Maxime.


        [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • C
          Chris Chris
          last edited by

          Hello Maxime,

          Thanks for fixing the category for my post. I am new to Cinema4D.
          I found the correct IDs by opening the UI for the material and drag and drop the settings into the Python console.

          Kind Regards,
          Chris

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