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

    Editor and viewport colours - where/how to find them?

    Cinema 4D SDK
    c++ sdk
    2
    3
    345
    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.
    • WickedPW
      WickedP
      last edited by

      Hi folks,

      I want to get the editor viewport colours, so I can colour things using the same as the viewport. I'm guessing this is in the preferences.

      E.g. how do I get the viewport background colour? How about the grid and world axis colours? Selected point colours... etc.

      WP.

      wickedp.com

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

        @WickedP

        see

        GetViewColor(VIEWCOLOR_C4DBACKGROUND);
        

        From there you can find the other viewcolors you need.

        1 Reply Last reply Reply Quote 0
        • WickedPW
          WickedP
          last edited by

          Thanks @C4DS, that's what I'm after!

          WP.

          wickedp.com

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