Forum: Poser Python Scripting


Subject: Mouse events in Python?

Cage opened this issue on Feb 27, 2008 · 15 posts


ockham posted Fri, 29 February 2008 at 10:34 PM

Hansel also accepts a background pic so you can trace from
a floor plan or a road map. 

Directly answering the technical question: You can get mouse
positions for the whole screen, if you're using the PIL package
along with TKinter.  You probably have PIL if you've got any of
the more complex scripts like WW.   It's not part of the basic
Poser install, and I suspect that a 'full-screen' position will
be fairly hard to get reliably, because Poser is greedy about
mouse and keyboard events.

Getting the mouse position with respect to a TK canvas is
straightforward, as you'll see by looking at the Hansel code.

My python page
My ShareCG freebies