MAYA - Question - nodeEditor item filter



Hi guys, one of my first posts here,

I wanted to ask if there is any way to query the itemFilter object of active tab in the node editor.

What i want to achieve, is to be able to select a specific node, and run a script, that will remove that nodetype from the item Filter, so all those nodetypes dont show up.

Or did i miss a easy way to do it with the standard menus, as it seams there is only the option to “show” specific types but not to hide them.

Would be great if anybody could help.
Pymel, or Maya.cmds in python would be appreciated, since I’m not too familiar with the C++ Maya Api