jit.pwindow attribute "pickray" ?

vichug's icon

Hey,
I was looking for a way to have mouseclicks inside a pwindow reporting location in pwindow's cell coordinates rather than screen pixels, then i saw the "pickray" attribute. So i tried to check that, then instantanously the jit.pwindow became buggy and glitchy, and it outputs a "pickray" message wiht numbers which are not looking so relevant.
Hence, here i am, seeking to enlight my numbed soul.

Rob Ramirez's icon
vichug's icon
Max Patch
Copy patch and select New From Clipboard in Max.

oh a very simple one really, it was just a test ; didn't save it, i'm afraid i did not remember it well. btw macosx 1068 max614

to get the bug : i created those things, then checked the "pickray", then try to resize/move the pwindow. Here, have a picture :

Capture-d’écran-2013-11-07-à-19.07.51.png
png
vichug's icon

ah it's funnny, it did'nt apear like that on my screen, rather like that :

Capture-d’écran-2013-11-07-à-19.14.09.png
png
Pedro Santos's icon

Hi. I've noticed it too.

Here are the steps:
1. Turn "pickray" on.
2. Click inside the pwindow.
3. Try to grow the pwindow (bottom right corner or through the inspector, it doesn't matter).
4. It's not a momentary glitch. The pwindow never updates, even if you bang the matrix.

Max Patch
Copy patch and select New From Clipboard in Max.

On a side note, the first and second values that get out of pickray seem to be the normalized coordinates (-1 to 1) on the x and y axis, but Rob Ramirez is certainly in a better position to clarify it.

Rob Ramirez's icon

apologies for missing this post.
pickray only functions when the pwindow is the drawing destination of a gl-context.