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

    SetChannel values...

    Scheduled Pinned Locked Moved Bugs
    5 Posts 0 Posters 1.3k 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 09/08/2003 at 06:50, xxxxxxxx wrote:

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

      ---------
      Hi,
      this code just won´t work. I cannot find any other way to set these values so this must be a bug. Please please please tell me I am wrong for I need it!! 🙂

          
          
          BaseChannel* ch = mat->GetChannel(CHANNEL_ALPHA);  
          if(ch)  
          {  
               BaseContainer chbc = ch->GetData();  
               chbc.SetBool(1012,FALSE); //"Soft Alpha" Value  
               ch->SetData(chbc);  
               ch->Message(MSG_UPDATE);  
          }
      

      Best
      Samir

      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 09/08/2003 at 13:05, xxxxxxxx wrote:

        Have you tried GetParameter()?

        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 09/08/2003 at 16:57, xxxxxxxx wrote:

          I have tried SetParamter and it doesn´t work :
          BaseContainer chbc = ch->GetData();
          chbc.SetParameter(DescID(1012),GeData(0));
          ch->SetData(chbc);

          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 16/08/2003 at 02:15, xxxxxxxx wrote:

            Maybe you overread it: Mikael wrote GETParameter...

            Cheers

            Kabe

            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 16/08/2003 at 03:45, xxxxxxxx wrote:

              overread? 🙂 no, I WANT to overwrite it! I need to SET the channel. He just pointed at the function. The corresponding contrary would then be SetParameter that should actually solve the problem. But it doesn´t for it doesn´t work.

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