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

    Remove WorldPluginData [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 297 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 13/11/2014 at 16:10, xxxxxxxx wrote:

      I created some Plugin Data Container and everything works how I wanted it.

      bc = c4d.BaseContainer()  
      c4d.plugins.SetWorldPluginData(123456789, bc)  
      

      But since I want to change some things, and see how it behaves when there isn´t any WorldPluginData set yet, I want to remove it altogether (not delete values inside of it).
      Can´t figure out how to do that, besides deleting all cinema´s prefs 😉

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

        On 13/11/2014 at 16:12, xxxxxxxx wrote:

        Sorry topic tilte was meant to be Remove WorldPluginData 😉

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

          On 14/11/2014 at 02:16, xxxxxxxx wrote:

          Hello,

          To completely delete the plugin data container you have to access the world container and remove the corresponding sub container:

            
            world = c4d.GetWorldContainer()  
              
            pluginsContainer = world.GetContainerInstance(c4d.WPREF_PLUGINS)  
            pluginsContainer.RemoveData(12345679)  
              
            c4d.SetWorldContainer(world)  
          

          For a full description of the world container elements take a look at this list[URL-REMOVED].

          best wishes,
          Sebastian


          [URL-REMOVED] @maxon: This section contained a non-resolving link which has been removed.

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

            On 14/11/2014 at 05:13, xxxxxxxx wrote:

            Thanks Sebastian!

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