![]() |
#2
|
|||
|
|||
The window.pick function only works for that window. You will have to call the pick function for the specific window you are interested in. You can use the viz.window.select command to get the current sub-window located at the specified screen position. I just noticed that this command is currently undocumented, so here is some example code showing how to use it:
Code:
# Get the sub-window located at the current mouse position window = viz.window.select() # Get the window located at the center of the screen window = viz.window.select([0.5,0.5]) # Get the window located at pixel location (100,100) window = viz.window.select([100,100],mode=viz.WINDOW_PIXELS) |
Thread Tools | |
Display Modes | Rate This Thread |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Documentating function names | aaThomas | Vizard | 5 | 05-15-2007 09:50 AM |
Do you know how to send a value for 'pool' to the onActionEnd function? | ghazanfar | Vizard | 1 | 03-22-2007 10:25 AM |
timers and director function | Jerry | Vizard | 1 | 06-22-2006 09:47 AM |
node3d.center function | tavaksai | Vizard | 3 | 08-13-2004 11:05 AM |
The error window that couldn't | FlyingWren | Vizard | 2 | 12-02-2003 08:23 AM |