On Sat, Jul 10, 2021 at 1:07 AM João Victor <[email protected]> wrote:
> Hi everyone,
>
> Maybe somebody know how I could query the active layout panels?
> If its a "single" or "four" or "vertical2" and so on..
>
You can query the global main pane layout, and then query its configuration:
import maya.cmds as cmdsimport maya.mel as mm
mainPane = mm.eval("$temp = $gMainPane;")
cmds.paneLayout(mainPane, query=True, numberOfVisiblePanes=True)# 4
cmds.paneLayout(mainPane, query=True, configuration=True)# quad
https://help.autodesk.com/cloudhelp/2020/ENU/Maya-Tech-Docs/CommandsPython/paneLayout.html
> Thanks,
>
> João
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/4cedf497-de9e-4f77-a7f1-c648a889bd21n%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/4cedf497-de9e-4f77-a7f1-c648a889bd21n%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0iFOUKkmPwHKsg4fTEwy2VfQJnLup8%2Bqh5-meqEc6kQw%40mail.gmail.com.