PDA

View Full Version : Two way attribute change?


alesmav
10-16-2003, 09:40 PM
Hey!

I was wondering if there is a way I can make one attribute affect another one, but also make the second attribute affect the first one at the same time. For example:

we have two cubes. Now I want to hook first cube translate Y to the second cube translate Y in a way that no matter which translate Y I change the other always gets updated. So if I change pCube1.ty to 40, pCube2.ty automatically gets updated to the same value, and if I now change pCube2.ty to 20 pCube1.ty also gets updated.

Can it be done in Maya?

ALES

zachgrachan
10-16-2003, 11:26 PM
I think you'll need to use a third object to control both, cause driving a channel with another attr locks it.

dwalden74
10-17-2003, 07:26 AM
Hi ALES-

A scriptJob will do this for you. It can work with triggered events like what you stated. You donīt really need a 2-way connection here; just 2 scriptJobs that say "when I update this one, update that one", and "when I update that one, update this one".

:beer:
David

CGTalk Moderation
01-16-2006, 08:00 AM
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.