Jump to content

How to put my asset in the right section in tab menu?


Recommended Posts

Hey, everybody.  I've created my own assembly. I put the dll in the dso folder. Houdini sees it. But when I use it, the tab menu shows it in the Custom section
How can I make it to be in the section I need?
Let's say Tab -> My Assets -> test asset.
Can you tell me what I need to do, is there any information on this issue?

Link to comment
Share on other sites

Yes, it's hard to look in the documentation, but, you can find it if you look )

Here is the signature:

OP_Operator(
        const char *name,
        const char *english,
        OP_Constructor construct,
        PRM_Template *templates,
        unsigned min_sources,
        unsigned max_sources = 9999,
        CH_LocalVariable *variables = 0,
        unsigned flags = 0,
        const char **inputlabels = 0,
        int maxoutputs = 1,
        const char *tab_submenu_path = 0);

When adding a new operator, you just need to specify a section instead of ab_submenu_path
At the same time other components are also set there, let's say several outputs of a node.
May be useful for someone )

However, as far as adding outputs on a node - this doesn't work for nodes in SOP. The output itself appears, but there is no way to pass data to it (I have not found a way). And that's a pity!

If, suddenly, someone bypassed this limitation, I would be glad to see this mechanism )

Edited by Serzh IV
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...