Forum Moderators: Lobo3433, Staff Forum Coordinators: Anim8dtoon
Poser Python Scripting F.A.Q (Last Updated: 2025 Nov 16 8:49 am)
Non-modal dialogs can be made with Tkinter - after a fashion. I've never gotten Tkinter to behave predictably or reliably in Poser.
I think your best option would be to use the Poser Scripts palette (not the menu).
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
Yeah, I was just doing some searching and didn't find any 'non-modal' Poser dialog info, so they might all be modal. Hrmf. So, you're suggesting maybe two separate scripts? One to install the callback and one to remove it? I guess that could be done.
Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.
Maybe this will help to find a solution for your app:
import Tkinter as Tk
def stopPressed(): # reset Poser events here app.cancel=True app.destroy() app=Tk.Tk() app.cancel=False btn=Tk.Button(app,text="press to stop",command=stopPressed) btn.pack() app.update() # Insert your standard app here. # call app.update() from time to time and check # app.cancel. import math for i in range(1000000) : # heavy work to do - the following makes no sense :) x=i*math.sin(i/100000.0)+math.acos(i/100000.0) app.update() if app.cancel : break for j in range(1000000) : y=x*math.cos(j/100000.0)
I think Ockham may be doing something like what you want in his Hansel script....
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
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.
Hey guys...
Does anyone have a very simple example of putting up a "stop" non-modal dialog, where the script puts that up, then stays alive (while Poser interface is available for user operation) until the stop button is clicked on?
I want to test out some things with a call-back function, but/so I need some way to:
...I just haven't done any interface/gui stuff at all yet, so I'm not sure of the simplest way to do this.
Cinema4D Plugins (Home of Riptide, Riptide Pro, Undertow, Morph Mill, KyamaSlide and I/Ogre plugins) Poser products Freelance Modelling, Poser Rigging, UV-mapping work for hire.