()
| 668 | |
| 669 | @staticmethod |
| 670 | def getCurrentModelPanel(): |
| 671 | currentModelPanel = mc.getPanel(wf=True) |
| 672 | if "modelPanel" not in currentModelPanel: |
| 673 | currentModelPanel = mc.getPanel(vis=True) |
| 674 | for each in currentModelPanel: |
| 675 | if "modelPanel" in each: |
| 676 | currentModelPanel = each |
| 677 | return currentModelPanel |
| 678 | |
| 679 | |
| 680 | # === Utility functions === |