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

    DATETIME_GUI

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 204 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 31/01/2014 at 07:12, xxxxxxxx wrote:

      I can not get the datetime_gui to open the calendar or the clock.
      The Date Today and Now buttons are working.
      Also, I do not get the little arrow in front?

              dtsettings = c4d.BaseContainer()
              dtsettings.SetBool(c4d.DATETIME_DATE_CONTROL, True)
              dtsettings.SetBool(c4d.DATETIME_TIME_CONTROL, True)
              dtsettings.SetBool(c4d.DATETIME_DATE_TODAY, True)
              dtsettings.SetBool(c4d.DATETIME_TIME_NOW, True)        
              dtsettings.SetBool(c4d.DATETIME_CALENDAR_OPEN, True)    
              dtsettings.SetBool(c4d.DATETIME_CLOCK_OPEN, True)
              self.startDate = self.AddCustomGui(3010, c4d.DATETIME_GUI, "", c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, 0, 0, dtsettings)
      
      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 03/02/2014 at 07:26, xxxxxxxx wrote:

        It is unfortunately not possible to trigger the layout change from Python (the BaseCustomGui class has
        no methods in the Python API [state R15]). Plus, custom GUIs that are not wrapped in Python are not
        returned as an instance of BaseCustomGui from GeDialog.AddCustomGui().

        Best,
        -Niklas

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