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

    Unable to specify Material Color

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 320 Views
    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 Offline
      Helper
      last edited by

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

      On 18/05/2005 at 07:27, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1 
      Platform:   Windows  ;   
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      <SCRIPT language=javascript>postamble();_<_Script_>_ hi,
      with rel 9.1 my plugins that create materials no long work correctly. I am unable to specify the color. I changed the old plugins to use the new AllocMaterial(Mmaterial) function  but that did not fix the problem. I can change parameters such as brightness with:
      col_c->SetData(CH_BRIGHTNESS, 0.5); 
      but the code to set the color does not work any more. (It used to work before 9.1).
      col_c->SetData(CH_COLOR, vector(0.5, 0.1, 0.1));
      I have found a workaround using the new Description code:
      mat#MATERIAL_COLOR_COLOR = vector(0.5, 0.1, 0.1);
      but would like to know how to set the color using SetData().
      anyone any ideas?

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

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

        On 01/06/2005 at 13:11, xxxxxxxx wrote:

        I'm afraid the new construct is the recommended way to set this in R9.1. I haven't found a way to set it with SetData(). So perhaps you will need to branch into two versions to maintain backwards compatibility.

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

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

          On 02/06/2005 at 21:56, xxxxxxxx wrote:

          Thanks Mikael . I shall do that.

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