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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Multiple NodeData's, single plugin?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 301 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 20/08/2016 at 09:00, xxxxxxxx wrote:

      Hello all,

      One quick, possibly dumb question: I was wondering how to bundle multiple object types/definitions into the same plugin.  Arnold or Xparticles are both good examples of plugins with one entry, so to speak, but many different ObjectData objects and TagData's employed in the same plugin.

      In my case I'm trying to lop an object and dialog (CommandData) into the same plugin, because it's silly to have them with their own separate entries in the Plugins menu (and other reasons), but I can't seem to figure it out...

      Did that make sense?  I might be off-base, here, or missing something obvious, but thanks in advance for any and all guidance 🙂

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

        On 22/08/2016 at 02:21, xxxxxxxx wrote:

        Hi,

        I'm not sure I get your request completely.
        For example a ObjectData and a TagData can't be in the same menu as they are fundamentally different entities.
        Some general notes on the topic, please forgive me, if I miss the core of your question:
        - In general you can have as many Register... calls as you like in a single source file.
        - All plugins in a single sub-folder of the plugins folder will be organized into a single plugins menu entry with multiple sub-menu entries.
        - You could hide plugins from being shown in the menu (PLUGINFLAG_HIDEPLUGINMENU). So if the user doesn't need to instantiate the object directly, it could be hidden and the CommandData could do all the work.

        Not sure, this helps... let me know, if you asked for something different.

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

          On 22/08/2016 at 09:50, xxxxxxxx wrote:

          Originally posted by xxxxxxxx

          - In general you can have as many Register... calls as you like in a single source file.
          - All plugins in a single sub-folder of the plugins folder will be organized into a single plugins menu entry with multiple sub-menu entries.

          Ooohh, of cooourrsse--in hindsight, that seems really obvious, but uhh, yeah, I did not think of that last week 😊   That's exactly what I was asking.
          Thanks, Andreas!

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