The channel box respects the isHistoricallyInteresting
attribute.
# Hide from outliner
cmds.setAttr("myNode.isHistoricallyInteresting", 0)
I can’t remember exactly what the various enums represent, but it’s something along the lines of.
0: Interesting to no one
1: Interesting to TDs
2: Interesting to Artists
And the UI then reflects this accordingly; i.e. not visualising them in the channel box but still returning them as a result of listHistory
etc.
Best,
Marcus
Sorry, not sure I’m understanding you. This will hide a specific node from the channel box. It the node is connected to the output of a particular node, or input shouldn’t make much difference.
What I typically do is just look through a selection of nodes and set their attribute accordingly.
from maya import cmds
for node in cmds.ls(sl=True):
cmds.setAttr(node + ".ihi", 0)
That way you can graph it, in say the hypershade, select it and hide it that way. The hypershade will then also make it apparent which nodes are part of a output or input.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOB9dc%2BDaEVRXtJAEmVWXcx5faGVtPjNqqUtY9qyCBw5KA%40mail.gmail.com.