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

    How to add a multi _line string UserData

    Cinema 4D SDK
    python s26
    2
    3
    382
    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.
    • chuanzhenC
      chuanzhen
      last edited by m_adam

      Hi.
      i want set String UserData interface to multi_line,but in DESC dont find parameter to set.
      this is my code:

      bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_STRING)
      bc[c4d.DESC_NAME] = "test"
      did = obj.AddUserData(bc)
      

      Thanks for any help!

      相信我,可以的!

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi @chuanzhen, you should define the UI to use for the user data like so:

        bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_STRING)
        bc[c4d.DESC_NAME] = "test"
        bc[c4d.DESC_CUSTOMGUI] = c4d.CUSTOMGUI_STRINGMULTI
        did = obj.AddUserData(bc)
        

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        chuanzhenC 1 Reply Last reply Reply Quote 0
        • chuanzhenC
          chuanzhen @m_adam
          last edited by

          @m_adam Thanks for help!

          相信我,可以的!

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