DATETIME_GUI



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


  • 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


Log in to reply