Hey guys, would somebody know how I could toggle colapse Channel Box (not close)?
I could use mel or python.
thanks a lot!
Joao
*MEL*'toggleUIComponentVisibility("Channel Box / Layer Editor");*PYTHON*import maya.mel as mmmm.eval('toggleUIComponentVisibility("Channel Box / Layer Editor");')
Joao
--
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/78f29055-d459-4f96-86be-64c7e60724fcn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1Me8F5OCeb_BcXjEbgA4rjofd0rEAxoQMJdaJVHZ63UA%40mail.gmail.com.
Hi. There you go. It's working for me.
MEL:
global proc toggleCB()
{
workspaceControl -e -clp (!`workspaceControl -q -clp ChannelBoxLayerEditor`) ChannelBoxLayerEditor;
}
Python:
import maya.cmds as cmds
def toggleCB():
state = cmds.workspaceControl("ChannelBoxLayerEditor", q=True, clp=True)
cmds.workspaceControl("ChannelBoxLayerEditor", e=True, clp=not state)
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAJZGTKXLeFTiJF5cJAv1dQ8aOOirBt%2B6Z5taeFY84dWnXuWGAA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFzJ14XcYKxNJpG9CFcNKELAXMLtBWAeT8DkZv4%3DA-W%2Bj0Y2Yw%40mail.gmail.com.