# How to apply a point coordinates to the transform position of an object?

Hi all, this is my first post here and I would really appreciate some help. I am currently working on my masters final project which is an AV system.

I want to make 5 different 3D objects rotate around a central point.

The way I am trying (and so far failing) to achieve this is to first create a hexagon from a circle, then I want to use the XY coordinates for each point of the hexagon to update the position of each object; points 0 through 4, one per object.

But I can’t figure out how to extract the XY data per point from the SOP (and enter this into a transform SOP for each object). When I convert the hexagon to a CHOP it only shows 3 channels - XYZ for the hexagon I presume.

Am I approaching this wrong, or missing some part of the process?

Any help very much appreciated!

Thanks

If you go from a Circle SOP → SOPto CHOP, you should get channels tx, ty, and tz. From there, you can reference the positional data using Python; for example, to get the first point you’d say

`op('sopto1')['tx'][0]`

and then just replace the channel name and number to access the other points.

1 Like