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

    Datatype for AddUserData() [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 242 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 11/06/2015 at 09:51, xxxxxxxx wrote:

      Hi! When creating descriptions in GetDDescription(), it is very important to set the parameter
      datatype in DescLevel::dtype, otherwise it might not work properly. How are we supposed to
      specify the datatype when using BaseList2D.AddUserData() in Python? Afaik, the datatype is
      not saved in the description container.

      Thanks,
      Niklas

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

        On 11/06/2015 at 10:01, xxxxxxxx wrote:

        I guess its deduced from the container ID or DESC_CUSTOMGUI parameter which both seem
        to be set to the datatype ID passed to c4d.GetCustomDatatypeDefault(). 🙂

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