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

    AddCheckBox default parameters

    Scheduled Pinned Locked Moved Bugs
    2 Posts 0 Posters 946 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 04/12/2017 at 03:18, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :       PYTHON  ;

      ---------
      initw and inith are marked as optinial while not

      import c4d
        
      class MyDialog(c4d.gui.GeDialog) :
          def CreateLayout(self) : #main dialog
              self.AddCheckbox(10001, c4d.BFH_SCALEFIT | c4d.BFV_SCALEFIT, name="test")
              return True
        
      def main() :
          dialog = MyDialog()
          dialog.Open(dlgtype=c4d.DLG_TYPE_ASYNC, defaultw=200, defaulth=150, xpos=-1, ypos=-1)
        
      if __name__=='__main__':
          main()
      

      return "TypeError: Required argument 'initw' (pos 3) not found"

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

        On 05/12/2017 at 03:33, xxxxxxxx wrote:

        Hi,

        I confirm initw/inith (and also name) parameters aren't optional.
        The docs will be fixed. Thanks for reporting.

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