Forcing DG evaluation!!

Just got a mail from a collague, that me reminded me of an old workaround I wanted to share. I’ve had my share of rigs not updating/evaluating propperly.Espeacily with referencing and Maya 7.01 on Linux!! (Yeah Alias, that release really sucked). And when your rigs suddenly stop evaluating, for no apparant reason, and you can’t fix it, your standing with animators and render people drop considerably. 🙂

I found a really stupid but effective fix though. I put it in all my rigs now.

I simply made a script that makes a scriptJob, that will list all unitConversion nodes in the scene, turn them off and then on again. This scriptJob is triggered on scene open (when a rig is referenced in for example). It’s also makes a custom attribute on both my rigs top node and on the scriptJob node itself. These are connected together. This way the scriptJob will tag along, whenever the the rig is exported out of a scene for instance.

3 thoughts on “Forcing DG evaluation!!”

  1. Here is the code:

    string $units[] = `ls -type unitConversion`;
    for ($u in $units)
    setAttr ($u + “.nodeState”) 1;
    setAttr ($u + “.nodeState”) 2;
    setAttr ($u + “.nodeState”) 0;

  2. If you wanted to do it nicer, i guess you could list all nodes in the scene, and if they have nodestate attr on them, them turn them off an on 🙂

  3. Hey. A little update. Just had to troubleshoot some Setup machine rigs, where constraints stoppen evaluating. Here turning on and off unitConsversion nodes did not do the trick. Instead you had to turn off/on constraints. So it might be usefull to make a procedure that turns off/on multiple types of nodes and use that as your standard “Rig dg eval troubleshooter”. Or add it as a scriptJob that travels with your rigs and trigs on scene open.

Leave a Reply

Your email address will not be published.