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

    Color Dialog - Default Color

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 369 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

      On 12/06/2017 at 15:04, xxxxxxxx wrote:

      Hi people!

      One question: Can I set a default color value to a gui.ColorDialog() ? Or for this I need to recreate an entire Color Dialog?

      I only want to change the black value to another color. I have the code with this basic structure:

        
      import c4d
      from c4d import gui
        
      def geo_color() :
          
          #color dialog
          cdlg = c4d.gui.ColorDialog(1)
          
          print cdlg
        
       
      if __name__=='__main__':
          geo_color()
      

      Thanks!!

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

        On 13/06/2017 at 02:28, xxxxxxxx wrote:

        Hi,

        unfortunately this is currently not possible in Python. I added it to our list of missing Python features.

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