Sun, Nov 10, 8:21 AM 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: UI Branding


redspark ( ) posted Mon, 15 June 2020 at 8:05 AM · edited Sat, 02 November 2024 at 1:03 PM

Hi,

I'm interested in coding some Python additions to Poser. I haven't done much coding in Python but the example scripts and API manual are fairly helpful. But something I can't seem to find (and may be it's obvious) is guidance on how to brand your UI elements to look like they belong in Poser. I see that Poser has PSD files that seem to contain graphics for different parts of its UI. Does anyone use this same process to make their Python interface look like Poser? Or is there a better way?

Also, is there a way to create new Poser Rooms using Python? Or at the very least extensions that dock to the UI.

Thanks.

James


structure ( ) posted Mon, 15 June 2020 at 11:46 AM
Forum Coordinator

using a UI Builder such as wxglade or wxformbuilder you can guild your UI on a dockable panel,

then using something like

        man = poser.WxAuiManager()
        root = man.GetManagedWindow()
        ui = UI(root)
        man.AddPane(ui, wx.aui.AuiPaneInfo().Caption('%s v%s' % (APPNAME, VERSION)).CaptionVisible().Float().Resizable().DestroyOnClose().Dockable(True).CloseButton(True))

you can make it dock in poser

Locked Out


redspark ( ) posted Mon, 15 June 2020 at 3:45 PM

Thanks. I'll give it a try and see how it works. :)

J


FVerbaas ( ) posted Wed, 17 June 2020 at 4:01 PM
Forum Coordinator

It would be useful if the Poser interface colours and character style were available as a template. Or, alternatively, a matching style that separates addons from native.


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.