I want to move 3 objects with one control. For example I have 4 spheres and sphere 1 is the control. Now when sphere one is in positive the other 3 spheres are also in positive. When the sphere goes in negative the other three spheres go in negative. How can I do that in mel and in expressions?

trancor

07 July 2007, 08:31 PM

Can't parent or use set driven keys?

Is the sphere moving with the other spheres or do you want it to be like, move the one sphere to another area and have the other spheres move to a different area more independantly than set driven keys?

nottoshabi

07 July 2007, 08:38 PM

It can not be set driven keys. It needs to be code cause this is an example of something else. For example: If Sphere 1 is at ty 10 then Sphere 2, 3 and 4 nedds to also be at ty 10. And if it goes to -10 the other 3 spheres need to do the same thing. I just need to see the code formation. Cause what I wrote is not working. I think I'm not declaring it right.

This finds the distance between the max and min distance the switch can move and gets the percentage between the two numbers and then places the other object between the objects set max and min movement values. The numbers are just a refrence, if you move the sphere switch further than the numbers, it just gets the larger percentage to place the controlled object at the same percentage of the set movement area.

If I missunderstood you, just say.

CGTalk Moderation

07 July 2007, 09:11 PM

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com