Multiple NodeData's, single plugin?



  • 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 :)



  • 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.



  • 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!


Log in to reply