PWindow location

Steven's icon

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

Steven's icon

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?

Rob Ramirez's icon

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.