Forum: Poser - OFFICIAL


Subject: Simple (I hope) Python question

Silke opened this issue on Feb 13, 2010 ยท 5 posts


Dizzi posted Sat, 13 February 2010 at 12:52 PM

The following script will show the Python Scripts palette:

The following script will show the Python Scripts palette:




#Show python palette
import poser
import wx.aui
bIsShown=False
for x in poser.WxAuiManager().GetManagedWindow().Children:
        try:
                if x.GetName()=='PythonPalette':
                        bIsShown=x.IsShown()
                for y in x.Children:
                        if y.GetName()=='PythonPalette':
                                bIsShown=x.IsShown()
        except: pass
if not bIsShown:
        poser.ProcessCommand(1509)