Page 1 of 1

### Moving Light tracking motion with Touch, pls help!

Posted: Mon Jul 01, 2019 5:43 am
Hi groupies,

I am a beginner in TD, only used it a few times for Kinect simple projects. I m having an urgent assignment now to use TD along with a accelerometer motion tracker, to have moving lights tracking a motion of an object on stage, which means I have to have:

- An anchor point O(0,0,0)
-The input of the coordinates (xyz) of the object
-The positions of the moving lights, compare to this object.

The moving lights are moving with Pan and Tilt .. So I thought it has to be a formulation that is easy to calculate everytime the object moves. Well, mathematically very easy, but is it possible in TD is something else. (So with rotation, angles, that changes along with the formulation).

How would you recommend best way to do this in TD? I have looked into Line Sop, Point SOP and probably use Magnet SOP? But it is unclear to me how could I translate this in corporation with Motion Tracker and nodes on TD. Please help me.. Millions Thanks!

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Tue Jul 02, 2019 8:41 am
I am also interested in doing something like this.

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Tue Jul 02, 2019 1:55 pm
This looks like something you'd actually want to do with geo/light COMPS and nulls instead of SOPs directly.

A basic setup would probably have your tracked object represented by a null COMP and then light COMPs corresponding to your fixtures placed into your scene. Have the light COMP look at points bound to your null and then use an execute DAT to convert the matrix transforms of the tracking object into rotation values.

You'll want to have a separate light comp for each light in your rig and iterate through them to extract all their values. Then you will need to interpolate the values to get you into the proper DMX ranges for your fixtures. Also you'll need to correct for variances in the way they are hung.

Here's an example for how to extract rotation values from matrix transforms.

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Wed Jul 03, 2019 12:34 pm
Interesting method with the execute DAT. How is it different from the object CHOP?

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Wed Jul 03, 2019 3:30 pm
I haven't used the object chop before.

Testing it out here it looks like you would need to use a separate one for each light. also, it looks like the object chop is computing a roll angle variance, which the other method doesn't. It seems like something you could choose to discard without issue though.

I generally assume that python script based operations are less efficient than raw CHOPs, so I suspect a solution built out of CHOPs would scale better and have better performance.

I modified the example (attached).

Thanks for the tip!

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Thu Jul 04, 2019 7:22 am
Interesting input!

I will try to send the dmx data and translate the data too try it out.
Thank you very much! I will let you know how it works out!

Best,
luonglinhle

### Re: Moving Light tracking motion with Touch, pls help!

Posted: Wed Jul 10, 2019 12:17 pm
Dear @flowb,

I tried with your patch, I connected the Moving head to its parameter and divide into 8bit of msb and lsb. However, it seems like the 2 lights are moving in seem direction, rather than targeting the same object, it is like they shed2 parallel ray...