Forums > Jitter

How can I have space coordinates of the point I'm clicking in jit.window ??

May 25 2012 | 8:35 pm

I want to be able to create object by clicking on the screen and I need coordinates in order to fire a message to my JS core to push a new object in an array + to instantiate that object on the screen.

For this, I need space coordinates

I tried to work with, picker but they are object related so .. I may miss something..

May 25 2012 | 9:14 pm

hi! check out this thread:, i was doing something quite simmilar. here is raw and dirty version done using jit.gen, for modifying object positions

-- Pasted Max Patch, click to expand. --

May 25 2012 | 9:15 pm

oh i think, i didnt understand you :)
sorry :)

May 25 2012 | 9:25 pm

Not sure what you need, but here is one way to get glworld coordinates:

-- Pasted Max Patch, click to expand. --

May 25 2012 | 9:32 pm

I’m just a nerd who doesn’t know how to communicate :-0
indeed, it isn’t the thing I’m looking for :-/

I guess the best way will be to create an external helper (I mean external to that patch) and to proceed with it

May 25 2012 | 9:34 pm

@Ben thanks to you too for your answwer.

ok it works, it is what I need.
I didn’t get the mouse x y z message from the info outlet of jit.window :)

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

Forums > Jitter