Forum: Poser Python Scripting


Subject: Snap for Macs - in development

HartyBart opened this issue on Jul 16, 2021 ยท 12 posts


adp001 posted Fri, 30 July 2021 at 4:21 PM

Bildschirmfoto vom 2021-07-30 22-52-28.png

Took me a while, but I'm starting to see land.

I'm hooked on user interface tinkering. It's hard to believe that wxPython can't make dialogs look the same in different versions and machines. The problem is that wxPython tries to leave the design of the controls to the system. So it happens that an interface looks like this on one system and completely different on another. In addition, wxPython works differently under P11 than under P12.

I have now built a part of the controls "discrete". As you can see, the radio buttons and the check controls are still original. But they will be added as well. The actual programming is done with Python 3.9 under Linux and then tested with Python 2.7 under Poser 11 in Windows (running in a virtual machine). This should ensure that it all works with P12 and not just Windows.

The controls for entering offsets are interesting. They can be compared to the controls in Blender. However, I added a few more things:If you change the values with the mouse (as with the standard Poser dials), and hold down Shift and/or Ctrl at the same time, the "scale factor" changes ("sensitivity" is what it's called in Poser). And the right mouse button shows a drop-down list with the last ten values ("History"), from which you can select one.

About the functionality: I think I've finished that.It works as I want it to work (which doesn't mean that others would prefer it to work differently). Since the logic is quite simple, it can be easily changed if needed.

I just have to clean it up a bit (there are some debug prints in there and some other stuff I don't need anymore) and then I'll post the whole thing. As a ZIP, because there are several files - and a lot of code, just for the UI.