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

    Container vanishes [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 207 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 09/01/2015 at 08:39, xxxxxxxx wrote:

      I have created an object that generates a spline.
      Inside the code, I create a new container (with a unique ID that I got from plugincafe). Inside that container I placed some data that I wanted to keep.
      It all works fine as long as I keep my object in its original state.
      I inserted this new container inside my object container.
      But, as soon as I press "C" and turn my object into a real spline, the container that I created and inserted inside the object container, simply disappears.
      How can I store some data inside my object in a way that it survives the process of becoming editable?

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

        On 09/01/2015 at 15:08, xxxxxxxx wrote:

        Ok, I found out what I was doing wrong. I was only storing the new container in the plugin object.
        Since that object disappears and is replaced by the calculated spline when the C key is pressed, I also need to store the new container in the spline object that is returned from the plugin object.
        Too damn obvious!!!

        (the solution presented to me while I was driving going to do some shopping... damn!! can't get programming out of my head 😉 )

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