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

    Textures - Changing Values

    SDK Help
    0
    2
    231
    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/05/2003 at 16:49, xxxxxxxx wrote:

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

      ---------
      I've created my set of materials. I can enable the needed channels, but I can't set any of the values in the channels.

      I was trying:
      m->SetChannelState(CHANNEL_COLOR,TRUE); - works fine
      BaseChannel *b = m->GetChannel(CHANNEL_COLOR);
      BaseContainer c = b->GetData();
      c.SetVector(MATERIAL_COLOR_COLOR,myVector); - for color
      c.SetReal(MATERIAL_COLOR_BRIGHTNESS,myReal);
      b->SetData(c);
      No values change.

      First attempt to understand and use containers - enum values came from the material.h file.

      Thanks,
      David

      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 26/05/2003 at 01:00, xxxxxxxx wrote:

        Try calling m->Update(TRUE, TRUE) after making the changes.

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