I am wondering about Maya’s dependency graph and attribute updates… Say I have a scene with a curve, several joints and a cube.
I add an attribute called ‘JointRadius’ to the curve and then connect ‘JointRadius’ to the ‘radius’ attribute of each of the joints. Now what I would hope for is that as I adjust the value of ‘JointRadius’ the joints would increase/decrease in size, however they don’t update until I select them in say the Hypergraph.
Next I take the setup above and now connect the joint’s ‘radius’ attribute to any of the cubes attributes (say translate x, y, z). With this change I get the behavior I want; adjusting the value of ‘JointRadius’ causes the joints to increase/decrease in size.
From poking around it seems this has to do with Maya’s ‘push-pull’ model for attribute update. So, in my example above, once I connect the joint’s ‘radius’ attribute to the cube this is forcing an update (the ‘pull’ part of ‘push-pull’?). Is that generally correct? Why does changing the ‘JointRadius’ attribute in the initial setup not cause the joints to update (I guess the ‘push’ part of ‘push-pull’)?
after reading your post i tried to do the some thing but i also got some result like you got.
the one thing i noticed is that the radius attribute of joints is unkey-able,
i also tried convert it to key-able but maya is not allowing to that.
and second thing the really name of that attribute is radi and radius is an neck name of it which we can see in channal box.
I would also like to know why one can’t connect radius attribute to another attribute.
[QUOTE=Creyke;14867]I am wondering about Maya’s dependency graph and attribute updates… Say I have a scene with a curve, several joints and a cube.
I add an attribute called ‘JointRadius’ to the curve and then connect ‘JointRadius’ to the ‘radius’ attribute of each of the joints. Now what I would hope for is that as I adjust the value of ‘JointRadius’ the joints would increase/decrease in size, however they don’t update until I select them in say the Hypergraph.
Next I take the setup above and now connect the joint’s ‘radius’ attribute to any of the cubes attributes (say translate x, y, z). With this change I get the behavior I want; adjusting the value of ‘JointRadius’ causes the joints to increase/decrease in size.
From poking around it seems this has to do with Maya’s ‘push-pull’ model for attribute update. So, in my example above, once I connect the joint’s ‘radius’ attribute to the cube this is forcing an update (the ‘pull’ part of ‘push-pull’?). Is that generally correct? Why does changing the ‘JointRadius’ attribute in the initial setup not cause the joints to update (I guess the ‘push’ part of ‘push-pull’)?