Moving a circle SOP to a new position with table DAT values

Hello,

I created a rectangle SOP connected to a transform SOP and a null SOP and a geometry SOP. There is also a moviefilein SOP connected to a constant MAT and this is connected to a geometry COMP.
There is also a circle SOP connected to a transform SOP and a null SOP and a geometry SOP. There is also a moviefilein SOP connected to a constant MAT and this is connected to the geometry SOP.
There is also a table DAT which stores the x and y position values of the circle SOP and is connected to the transform SOP of the circle to position the circle.
There is a second table DAT which stores different x and y position values for the circle. The rectangle and circle geometry COMPs are connected to a render TOP together with a camera and light.

mouse_change_position.toe (7.7 KB)

I would like to create two scenarios:

  1. How can it be made that when a person clicks on the circle, it moves to the x and y positions stored in the second table ? (the rectangle remains static, not movable)
  2. How can it be made that a person clicks and moves on the circle with the mouse to a specified position where the x and y positions are stored in the second table ? (the rectangle remains static, not movable)

The first point, I tried with noise CHOP with tx and ty values and also with a renderpick chop as well as with a panel with the channels lselect, reposition and click, but it didn’t work.
The second point, I tried with a mousein CHOP connected to mousein CHOP and a null CHOP. But it was also not successful.

mouse_change_position.toe (7.7 KB)

click_change_position.toe (7.7 KB)