Forums > Jitter

PWindow location

June 14, 2008 | 3:55 pm

I have two related queries:

1) Is there any way of reporting the position of the PWindow object in a patch? Obviously I can view as text and copy manually.. but I want to get at these values in Max.

2) Is there any way of determing the actual live ‘screen’ position of an open patch window?

Thanks

Steve


June 14, 2008 | 5:14 pm

Ah.. thispatcher solves the ‘screen postition’ issue.. but I still can’t find a way to get a pwindow to tell me where it is within a patch.. any ideas?


June 14, 2008 | 6:05 pm

in max 5 send "getglobal_rect" to the pwindow and "route global_rect" on the dump outlet.

no go in 4, but you can probably achieve what you want with javascript, by naming the pwindow and querying it in the script.


Viewing 3 posts - 1 through 3 (of 3 total)