Controlling different things with jit.gl.handle

Jun 5, 2006 at 2:01pm

Controlling different things with jit.gl.handle

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

#26296
Jun 5, 2006 at 2:47pm

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

hth -thijs

#78354
Jun 5, 2006 at 3:14pm

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

#78355
Jun 5, 2006 at 3:40pm

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

#78356

You must be logged in to reply to this topic.