Custom Tab Menu or context

   1325   3   2
User Avatar
Member
19 posts
Joined: Nov. 2018
Offline
Hello,

I'm trying to create an easy way to work with a sub-set of the nodes available in the shop context.

For this I had two possible options in mind:
  1. Customize the Tab Menu to show only certain nodes, and connect this customized tab menu to a specific hotkey.
  2. Create a new customized context, which works like the normal shop context, but has restrictions on what nodes can be used there

Googling though I'm not finding much in the terms of customizing tab menus / contexts. Any ideas on how to achieve this?
User Avatar
Staff
1448 posts
Joined: July 2005
Offline
The usual practice is to have a new customized context that filters the operators. Ie, the context node overrides OP_Network::getOperatorFilter() that returns the object that does the filtering.
User Avatar
Member
19 posts
Joined: Nov. 2018
Offline
Thanks for the answer rafal! And how do I go about creating a new customized context? Can I build it in python or do I need to use HDK?
User Avatar
Staff
1448 posts
Joined: July 2005
Offline
There is an HDK example in $HFS/toolkit/samples/VOP/VOP_CustomContext.C
  • Quick Links