So I have been experimenting with draggerContext
, a simple command, that can be used to for example increment or decrement a value repeatedly as the user drags left or right.
I really like to this kind of utility and so I want to build a few of them, all in the same vain; increment or decrement one or more attribute values.
I am now trying to wrap my head head around a common generic, and even, efficient ways of doing implementing section, that is the “get the attribute value and then set attribute value”.
Speaking from a point of view of someone that has little experience with Maya programming conventions, are getAttr
and setAttr
the way forward here? Just from pure speculation, I am thinking that since I am dealing with high a fidelity control (mouse movements) there could be slow downs, since I would need to getAttr
, then setArr
for every potential attribute.
Am on Maya 2026. Thank you for any sight or help.