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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to disable GI in the material manager on C++?

    Cinema 4D SDK
    2
    2
    838
    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.
    • Z
      zhhm1123
      last edited by s_bach

      I need to disable the Generate GI in the material mananger.And i have found the Parameter"MATERIAL_GOBALILLUM_GENERATE"but not worked on my project,could Anyone take some example on C++ about how to disable this?

      1 Reply Last reply Reply Quote 0
      • S
        s_bach
        last edited by

        Hello,

        please post questions on Cinema 4D plugin development in the "Cinema 4D Development" forum. When doing so, please also use the appropriate tags.

        MATERIAL_GLOBALILLUM_GENERATE is the correct ID of that parameter. You just have to set the parameter value of the material you want to edit:

        material->SetParameter(MATERIAL_GLOBALILLUM_GENERATE, false, DESCFLAGS_SET::NONE);

        please notice that the ID is defined in the millum.h header file.

        If you have general questions on how to handle materials with the C++ API you will find information in the documentation:

        • Materials and Shaders Overview
        • BaseMaterial Manual
        • Material Manual

        best wishes,
        Sebastian

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

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