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

    Adding dynamic attributes to plugins.ObjectData

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 282 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 02/08/2013 at 07:16, xxxxxxxx wrote:

      I'm trying to work out a way to dynamically add Link Boxes to an Object Plugin.

      Is this even possible, I've had no luck so far - i guess i'm looking for an AddCustomGUI alternative but I know that is reserved for the CommandData plugin

      cheers!

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

        On 02/08/2013 at 08:14, xxxxxxxx wrote:

        No this doesn't work for an object plugin. Thet GetDDescription() method from C++ which would allow
        you to do this is not implemented in Python. You can use userdata alternatively. See
        GetUserDataContainer() and SetUserDataContainer() of the BaseList2D class.

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

          On 02/08/2013 at 08:22, xxxxxxxx wrote:

          Thanks Niklas, only reason I'm doing it this way is I want the values of the linkboxes preserved with the c4d document without going into saving extra files.

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