# Servo Controller for different links

**URL:** <https://forum.visualcomponents.com/t/servo-controller-for-different-links/2601>\
**Category:** Component Modeling\
**Created:** [June 2, 2021, 5:07am UTC](https://forum.visualcomponents.com/t/servo-controller-for-different-links/2601 "2021-06-02T05:07:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![regis.vieira](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/regis.vieira/32/2384_2.png) [@regis.vieira](https://forum.visualcomponents.com/u/regis.vieira)\
**Post date:** [June 2, 2021, 5:07am UTC](https://forum.visualcomponents.com/t/servo-controller-for-different-links/2601/1 "2021-06-02T05:07:23Z")

</div>

Hi everyone,  
I have a modeling component that has several links, each with a different movement type.  
My question is if I have to use a Servo Controller for each link or do I use only one? In the case of using only one how to reference the link in the script?

Thanks!

![Processing1](https://forum.visualcomponents.com/uploads/default/original/2X/1/1f54a9fd92cfad74889bdb267830d2a34b8bed41.jpeg)

---

<div class="post-metadata">

**Author:** ![Este](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/este/32/760_2.png) [@Este](https://forum.visualcomponents.com/u/Este)\
**Post date:** [June 2, 2021, 6:37am UTC](https://forum.visualcomponents.com/t/servo-controller-for-different-links/2601/2 "2021-06-02T06:37:42Z")

</div>

Hi @regis.vieira

You only need to add one servo controller if you need to perform one motion command at a time. This could be moving only one joint or moving some group of joints at the same time.

The first two lessons in this course should get you started: [https://academy.visualcomponents.com/courses/basics-of-python-scripting/](https://academy.visualcomponents.com/courses/basics-of-python-scripting/)

Check the python API documentation for further programming tips. Especially the vcServoController, which has the relevant commands. To move a single joint, you can use the moveJoint() method. Servo controller joints are selected as indexes (0, 1, 2…).  
To move multiple joints, you can set individual targets with setJointTarget(), then set the motion time with setMotionTime, and finally activate the motion with move().

---

<div class="post-metadata">

**Author:** ![regis.vieira](https://forum.visualcomponents.com/user_avatar/forum.visualcomponents.com/regis.vieira/32/2384_2.png) [@regis.vieira](https://forum.visualcomponents.com/u/regis.vieira)\
**Post date:** [June 2, 2021, 5:49pm UTC](https://forum.visualcomponents.com/t/servo-controller-for-different-links/2601/3 "2021-06-02T17:49:07Z")

</div>

Thanks a lot @Este ! I will use setJointTarget(), setMotionTime() and move(), because I have a few tasks to do in this component.  
Thanks again!
