Forum: Poser Python Scripting


Subject: Clear and concise example of an Addon?

FVerbaas opened this issue on Jul 06, 2018 ยท 3 posts


FVerbaas posted Fri, 06 July 2018 at 4:19 AM Forum Coordinator

Can anyone help me to a clear and concise example of an add-on registrering a panel in the Poser GUI and doing something? The examples that come with Poser either are either no doubt brilliant but obfuscated (Python console example) or complicated and essential structure is hard to find (MoCap)


adp001 posted Tue, 10 July 2018 at 7:57 AM

There is no such thing like "registering". The whole Poser-UI is based on the Toolkit "WxWidgets", a Cross-Plattform GUI with bindings for several programming languages. In Poser wxPython is used as binding for Poser Python.

If you want to have your own created (wx)window managed by Posers GUI, you have to use the wx.aui.AuiManager handled by Poser (manager=poser.WxAuiManager()). Anything else you have to know is how to deal with wxWidgets AUI Manager.

See https://wxpython.org/Phoenix/docs/html/wx.aui.AuiManager.html




FVerbaas posted Thu, 12 July 2018 at 4:15 PM Forum Coordinator

Hmm. So if I understand this well: Addons need registration (poser.RegisterAddon )to become part of the process loop and be warned about events.

GUI panes van be managed by Poser without being part of an Add-on.

The Python Shell addon does not have any visible callback functions set up but uses the addon system do become persistent ove Poser restarts.

Is there a wxPanel class that supports the drag-drop etc?