# Parent a point from one object to another object?

I have two objects in my scene, a line called `curve1` and a circle called `nurbsCircle1`. I want to attach one end of `curve1` line to the `nurbsCircle1` shape.

So that when I move the circle, one end of `curve1` will always move with the circle, with the other side of `curve1` always staying put. Something like this example

I have asked this question in other places like HERE but I did not get any answers. The only place that I got an answer from was Reddit but it was entirely in code:

``````import maya.cmds as mc
c = mc.circle()[0]
l = mc.curve(d=1,p=[(-1,0,0), (0,0,5)], k= (0,1))
cls = mc.cluster(l +'.cv[0]',)[1]
mc.select(c,cls)
mc.pathAnimation()
``````

The code works and I do understand it but I am just switching to Maya and I wanted to understand how to do this with the UI first, then through code. Interestingly enough, the person mentions there are â€śa hundred waysâ€ť to do this.

Could someone share with me one way on how to do this with the UI?

I have been lurking on this site for some time so I thought I would finally join and ask here for help.
Any help would be greatly appreciated!

`c = cmds.circle()[0]`
Create â†’ NURBS Primitives â†’ Circle

`myLine = cmds.curve(degree=1, point=[(-1, 0, 0), (0, 0, 5)], knot=(0, 1))`
Create a line however you like.
This example line of code creates creates a:

• straight line (degree=1)
• from point (-1, 0, 0) to point (0, 0, 5)
• parameterized from 0 to 1 (knot=(0, 1))

`cls = cmds.cluster(myLine + ".cv[0]")[1]`
Select cv[0] of the line you just created

• Hold right-click over your line, and drag to â€śControl Vertexâ€ť, then click on the CV you want to control

and put a cluster on it.

• In Rigging mode: Deform â†’ Cluster

`cmds.parent("cluster1Handle", "nurbsCircle1")`
Here I change things up a bit from the reddit postâ€¦
In the outliner, middle-click drag â€ścluster1Handleâ€ť onto â€śnurbsCircle1â€ť
This makes the cluster a child of the circle.

Now when you drag the circle, it will drag the cluster as well. And the cluster controls cv[0] of the line, so it will move!

Explaining how to do UI things via text isnâ€™t the easiest thing in the world, and understanding those explanations that we would give isnâ€™t easy either.
So if setting up little rigs like this is something that interests you, YouTube tutorials are a MUCH better place to learn the UI (sorry, I donâ€™t know of any good ones). Iâ€™m not trying to steer you away from asking questions at ALL. Iâ€™m just saying a UI is something thatâ€™s better shown than explained.

And then when you hit another wall, you can always ask another question here!

1 Like

Hey I had a chance to go through your answer in Maya, it works! and whats more I understand it now and change it around to suit my needs.

Thank you for taking the time to answer my question. I really appreciate it.

So if setting up little rigs like this is something that interests you, YouTube tutorials are a MUCH better place to learn the UI (sorry, I donâ€™t know of any good ones). Iâ€™m not trying to steer you away from asking questions at ALL. Iâ€™m just saying a UI is something thatâ€™s better shown than explained.

I hear you. I will do this going forward!