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

    desc -> userdata

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 323 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 27/06/2015 at 03:21, xxxxxxxx wrote:

      hello,

      is there a way to transform a Desc to user data?

      Example, 
      I have a bool in Desc and like to save this in user data for later usage

      thanks

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

        On 30/06/2015 at 02:35, xxxxxxxx wrote:

        Hi,

        You can first retrieve the description of an object with C4DAtom.GetDescription() and then iterate through its parameters to get one of these description container. Then add a user data with BaseList2D.AddUserData() passing the parameter description container and setting the actual user data value.

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

          On 01/07/2015 at 15:59, xxxxxxxx wrote:

          thanks - working

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

            On 01/07/2015 at 23:32, xxxxxxxx wrote:

            Note that GetDescription() is not available in R15 and older versions.

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