On Sun, Jul 4, 2021 at 11:12 AM João Victor <joaovictor...@gmail.com> wrote:
> Hey guys, would somebody know how I could toggle colapse Channel Box (not > close)? > I could use mel or python. > > thanks a lot! > Is this what you are after? 1. Open script editor and enable "History"-> "Echo All Commands" 2. Hit the "Toggle the Channel Box button on the top right" 3. Take note of the mel command used to toggle the visibility of the Channel Box 4. Disable "Echo All Commands" So then this snippet should toggle it the same way as the button: *MEL* 'toggleUIComponentVisibility("Channel Box / Layer Editor"); *PYTHON* import maya.mel as mm mm.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_maya+unsubscr...@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 > <https://groups.google.com/d/msgid/python_inside_maya/78f29055-d459-4f96-86be-64c7e60724fcn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1Me8F5OCeb_BcXjEbgA4rjofd0rEAxoQMJdaJVHZ63UA%40mail.gmail.com.