Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Naming Curves With cmds.ikHandle ikSplineSolver

Naming Curves With cmds.ikHandle ikSplineSolver

Peteman12
Advocate Advocate
940 Views
4 Replies
Message 1 of 5

Naming Curves With cmds.ikHandle ikSplineSolver

Peteman12
Advocate
Advocate

Is there any way to name the Curve generated with cmd.ikHandle (sol="ikSplineSolver"), or do I have to do so manually?

0 Likes
Accepted solutions (1)
941 Views
4 Replies
Replies (4)
Message 2 of 5

ejekt
Observer
Observer

Manually. Same goes for the various IK nodes such as the effector.

0 Likes
Message 3 of 5

Peteman12
Advocate
Advocate
Accepted solution

I found a way around my problem. I was worried that I would have to rename the object by its default name, but I was worried about the possibility of the name already existing in the scene. But I discovered that if I have ikSpines = mc.ikHandle({insert information here}), I get a list, so in order to rename the values, I just need to do mc.rename(ikSpines[1]) for the effector and mc.rename(ikSpines[2]) for the curve.

Message 4 of 5

ejekt
Observer
Observer

Yes, exactly. That's what I meant by manually. You get the list of created nodes and rename each in turn.

 

Good job! 🙂

0 Likes
Message 5 of 5

Peteman12
Advocate
Advocate

I didn't know that you got a list.

0 Likes