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

    Enabling and setting Material Channels

    SDK Help
    0
    2
    276
    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
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 25/03/2003 at 07:54, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      "New" Materials have already been added and need to enable certain channels (in the AM) and then set the channel properties.  Using GetChannel() works with Color channel, but setting BASECHANNEL_TEXTURE applies the texture to all channels.
      What's the basic technique for enabling and setting particular Material channels?
      Robert

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 25/03/2003 at 10:03, xxxxxxxx wrote:

        Okay, got a handle on the the Material channels.
        To enable or disable (replace DescID with appropriate channel and TRUE to FALSE to disable) :
        baseMaterial->SetParameter(DescID(MATERIAL_USE_COLOR), TRUE, NULL);

        Some channels cannot be set using the BaseChannel - such as the Specular channel.  Instead of getting the BaseChannel and setting the BaseContainer data, use baseMaterial->SetParameter() as above to set the various channel parameters:
        baseMaterial->SetParameter(DescID(MATERIAL_SPECULAR_HEIGHT), 0.5, NULL);

        for instance, sets the specular height to 50%.
        Robert

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