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

    GeUserArea ActivateFading and AdjustColor

    Cinema 4D SDK
    c++ r19 r20 r21
    2
    6
    654
    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.
    • C4DSC
      C4DS
      last edited by

      Hi,
      Was wondering how the GeUserArea functions ActivateFading and AdjustColor are supposed to be used. Didn't find any example, nor does the documentation clearly explain when and where the perform the call.

      Does the ActivateFading needs to be called when mouse hovers over the GeUserArea, detected with BFM_GETCURSORINFO in GeUserArea::Message?
      And needs the ActivateFading be called again related to BFM_CURSORINFO_REMOVE?
      Do we then have some kind of "fade in" and "fade out"? Or is there only a single fading?
      How to distinguish between fade in and fade out? Since the AdjustColor sets the blend colorS for fading I assume there is a color to fade in to, and one to fade out to? Or is it fade from - to?

      And then the AdjustColor arguments: an Int32 while the document mentions COLOR. Documentation just leads to an enum when clicking on the link. How to provide an appropriate value?

      What about the float percentage value? Is it between 0.0 and 1.0 or between 0.0 and 100.0?
      "Percentage" doesn't say much.

      So many questions.

      1 Reply Last reply Reply Quote 0
      • P
        PluginStudent
        last edited by

        Here is an example: GUI and Interaction Messages Manual

        C4DSC 1 Reply Last reply Reply Quote 1
        • C4DSC
          C4DS @PluginStudent
          last edited by

          @PluginStudent

          Ah, the BFM_FADE message ...
          Thanks for the link.

          1 Reply Last reply Reply Quote 0
          • C4DSC
            C4DS
            last edited by

            What if one would want to use a GeClipMap for drawing in the GeUserArea, how to handle the resulting fading? How to access the color components, since the COLOR id used via the AdjustColor can not be used.

            1 Reply Last reply Reply Quote 0
            • P
              PluginStudent
              last edited by

              Can you access the color using GeUserArea::GetColorRGB()?

              C4DSC 1 Reply Last reply Reply Quote 0
              • C4DSC
                C4DS @PluginStudent
                last edited by

                @PluginStudent
                Yup ... it's official, I need glasses on top of my glasses.

                Thanks for pointing it out.

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