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
    • Register
    • Login

    incorrect specular channel property ids

    Bugs
    python
    2
    3
    434
    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.
    • indexofrefractionI
      indexofrefraction
      last edited by indexofrefraction

      hi,

      just FYI, some of the specular channel properties give (sometimes completely) wrong ids when dragged to the console...

      eg.
      c4d.REFLECTION_LAYER_MAIN_VALUE_ROUGHNESSLINK
      should be
      c4d.REFLECTION_LAYER_MAIN_SHADER_ROUGHNESS

      c4d.REFLECTION_LAYER_FRESNEL_VALUE_STRENGTHREAL
      should be
      c4d.REFLECTION_LAYER_FRESNEL_VALUE_STRENGTH

      etc

      best, index

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

        Hi @indexofrefraction you should useREFLECTION_LAYER_MAIN_SHADER_ROUGHNESS for REFLECTION_LAYER_MAIN_VALUE_ROUGHNESSLINK and you are right for the second this is REFLECTION_LAYER_FRESNEL_VALUE_STRENGTH

        The bug you mention was already reported in How to set a Shader for Roughness ???? and so far have not been fixed. If you want to know the real Id you can take a look at c4d_reflection.h

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • indexofrefractionI
          indexofrefraction
          last edited by

          tx, i just wanted to report it...

          1 Reply Last reply Reply Quote 1
          • maxonM maxon moved this topic from Cinema 4D SDK on
          • First post
            Last post