Bidirectional connection for attributes in Maya

Hello everyone,
I would like to know if it’s possible to have a bidirectional connection between 2 attributes.
I want to be able to change both attributes.

Something like this can be done in Max:
The translateX of the teapot is connected to the scaleZ of the box
But the scaleZ of the box is also connected to the translateX of the teapot.

Can it be done in Maya ?

Nope. For better or worse that’s a big no-no in Maya

Oh… That was not what I was hoping for :smile:
I guess I will have to make it another way.
Thank you :slight_smile:

You can do it with proxy attributes.

from maya import cmds
node = cmds.createNode("transform", name="null1")
cmds.addAttr(node, longName="attr1", attributeType="float", keyable=True)
cmds.addAttr(node, longName="attr2", proxy=node + ".attr1")



Thank you very much !
That’s exactly what I wanted to do !!

I think I did that years ago with scriptjobs or callbacks, and it worked.
Until You start to keyframe the objects…then it is a mess…