Sun, Nov 17, 1:35 PM CST

Renderosity Forums / Poser Python Scripting



Welcome to the Poser Python Scripting Forum

Forum Moderators: Staff

Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)

We now have a ProPack Section in the Poser FreeStuff.
Check out the new Poser Python Wish List thread. If you have an idea for a script, jot it down and maybe someone can write it. If you're looking to write a script, check out this thread for useful suggestions.

Also, check out the official Python site for interpreters, sample code, applications, cool links and debuggers. This is THE central site for Python.

You can now attach text files to your posts to pass around scripts. Just attach the script as a txt file like you would a jpg or gif. Since the forum will use a random name for the file in the link, you should give instructions on what the file name should be and where to install it. Its a good idea to usually put that info right in the script file as well.

Checkout the Renderosity MarketPlace - Your source for digital art content!



Subject: Clear and concise example of an Addon?


FVerbaas ( ) posted Fri, 06 July 2018 at 4:19 AM · edited Sun, 17 November 2024 at 11:40 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 · edited Tue, 10 July 2018 at 7:58 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 · edited Thu, 12 July 2018 at 4:16 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?


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.