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
    • Login

    How do I set ColorFields?

    Scheduled Pinned Locked Moved SDK Help
    5 Posts 0 Posters 388 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 23/11/2009 at 07:39, xxxxxxxx wrote:

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

      ---------
      I am trying to pre-set colorfields in my dialog, but don't get the expected result. I can only set the major RGB colors.

      In my code, both

        
      SetColorField(ID_COLORFIELD,Vector(255,0,0),1,1,0);   
      

      and

        
      SetColorField(ID_COLORFIELD,Vector(120,0,0),1,1,0);   
      

      produce the same red color (255,0,0). However, using the color slide bars then lets me chose other colors ... how can I preset the ColorField to other values than 255 or 0??

      Thanks, Juergen.

      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 23/11/2009 at 08:02, xxxxxxxx wrote:

        Use a floating point vector from 0.0 ..1 .0!

        Hope it helps

        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 23/11/2009 at 08:05, xxxxxxxx wrote:

          That should help as that is how color values are set in C4D. 🙂

          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 23/11/2009 at 08:39, xxxxxxxx wrote:

            Thanks so much ... won't guess how long I spent on something simple like that!

            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 23/11/2009 at 09:15, xxxxxxxx wrote:

              Well, though it's sadly not part of the documentation, there are hints in some examples...

              However, the SDK is missing a number of overview articles with things that can be missed easily.

              Kabe

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