'in maya, set custom attributes of an expression node by variables

I want to drive the ouput values of custom attributes of a expression node by variables inside this same expression node.enter image description here



Solution 1:[1]

Expressions do not work like this. You cannot assing a value to an attribute this way. The direct assingment only works if you set an value of a connected destination. If you want to set an attribute, you have to use setAttr().

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 haggi krey