Forum: Poser Python Scripting


Subject: Paying for a Script that Restores X Y of a python add-on hiding somewhere

Threshroge opened this issue on Dec 17, 2022 ยท 6 posts


HartyBart posted Mon, 19 December 2022 at 5:40 AM

Thanks for the news about a Poser 12 version of Hampelmann. 1.7 for Poser 12 is free at his forum: https://beckh.net/alforum/index.php?topic=3819.0 though may also need the free 1.6 from Renderosity https://www.renderosity.com/freestuff/items/65754/hampelmann-v16-figure-posing-tool-for-poser-9pro-2012 for the configs and figure profiles. Regrettably I still can't move it past this window, whatever I do or load. Moving to the next screen is presumably done by the tiny arrows in the top-right, but they do nothing.


 


But this at least gives me a panel I can test your script with.  Here is a working version of your mover script in Poser 12:


# A PoserPython script for Hampelmann 1.7 for Poser 12 which is
# available free at https://beckh.net/alforum/index.php?topic=3819.0
#
# Usage:
# 1. Launch Hampelmann in Poser 12.
# 2. Run this script.
# 3. The active Hampelmann panel is grabbed, moved to the upper left of the UI.
#
# Written by Threshroge, and fixed my HartyBart, December 2022.

import poser

# Set up our parameters, to call later. Change the APPNAME name to have this
# script work with any other panel / pane in Poser 12. Note that the print
# statements here are Poser 12 (Python 3) specific, and thus this is not a
# Poser 11 script.
APPNAME = 'Hampelmann'
DEBUG = True
manager = poser.WxAuiManager()

# Get a list of open panels (aka panes)
def FindMe(namedebug=False):

    for pane in manager.GetAllPanes():

        if debug and pane.caption != ''print('\t%s' % pane.caption)

        if pane.caption == name:

            return pane

    return None

if DEBUG: print('Searching for running scripts...')

# Detect Hampelmann on the list
me = FindMe(APPNAME, DEBUG)

# If a Hampelmann panel is present, move it to the upper-left of the UI.
# Change the co-ordinates after FloatingPosition, to move the panel elsewhere.
if me:

    print('\nScript %s found' % APPNAME)

    me.FloatingPosition((0,0))

    me.Float()

    me.Show()

    manager.Update()

else:

    print('\nScript %s is not running' % APPNAME)




Learn the Secrets of Poser 11 and Line-art Filters.