Forums > Jitter

Controlling different things with jit.gl.handle


Seb
June 5, 2006 | 2:01 pm

Hi
I am a newbie and just trying to work out how I can control diffferent things with the jit.gl.handle object.
At the minute I have a .obj and also a quicktime movie both being sent to the same GL render object. I can spin the movie around with the mouse but I want to be able to switch and also spin the .obj object then switch back and affect the movie etc. I have tap tools installed in case this helps.
Best wishes
Seb


June 5, 2006 | 2:47 pm

you can simply change the object that handle is connected to, using
send/receive or gate or something like that.

hth -thijs



Seb
June 5, 2006 | 3:14 pm

At the minute the jit.gl.handle is connected to the render object with s and r objects. So you are saying that I can just send the jit.gl.handle to other objects that are being rendered by the same render object and that is it?
I will try that tonight when i get home.
thanks for the help.
Seb


June 5, 2006 | 3:40 pm

I just tested, it’s been a while since I played with it. Turns out that its
a little trickier. The handle keeps its position from the last moved object.
You can work around it like this:

- disconnect handle from current object
- request rotation and position properties from object you want to connect
to next (getposition, getrotate)
- send them to handle, for initialization.
- connect handle to object.

I have a vague memory about an attribute for handle in case you use multiple
of them, each object its own, but I can’t find anything in the docs. Maybe
someone else can clear this up.

good luck.

-Thijs


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