Maya: Connect attr and add constant

Perhaps I’m missing something obvious, but is there any way to connect an attribute that first gets a constant value added to it?

Say you wants to have the translateX of one transform node connect to the translateX of another. However you wanted to add 1.0.

psudeo code


cmds.connectAttr('mynode.translateX', 'addConst.input')
# somewhere you would set the constant value to add to the input
cmds.connectAttr('addConst.output', 'othernode.translateX')

Is this possible or is there a better way to achieve this?

Thanks

nvermind, didn’t look hard enough

addDoubleLinear