AddTarget - Float scripts

Hello,

How can i use the AddTarget option in float scripts? I dont't want to write a new script to solve this problem, but where i have to write this "AddTarget" to make it works, and what i have to write punctually?...

I searched for solution on scriptspot and cgtalk, but i didn't found what i want, only separated scripts which solve this, i think (hope) it could works without any other scripts...

For example: There is three spheres. (Sphere01, Sphere02, Sphere03). I give to the Sphere01 that it's position controller be a float script, and in this script write that "$Sphere02.pos". So it will be always where the Sphere02 is. But if i link the Sphere02 to the Sphere03, and i move the Sphere03, the 01 is not updated by the script. Only when i move the Sphere02...

What i have to do in this case?

Thanks the answer(s) in advance!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Matyrix's picture

Yes you are right, but this

Yes you are right, but this was just a very short cut of my problem. My problem is that i can't use the AddTarget option in a character's rig, and hoped that if you could show me how can use it in the case of sphere's (in a very simple case) i could use everywhere.

So the matter is the right usage of AddTarget.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.