How to intoduce lag

if i want joint B to perform an action(rotate from 10 to 20
degrees) after joint A completes its action,how can i do this using mel.Basically i want to connect joint A and jointB's rotation but with an offset in time.
Please help me out with this one

You'll want to create an expression that uses 'getAttr -t' and specify a time of frame+30, or whatever.

You may need to check 'always evaluate' to get it to fire.

a better solution is to use the frameCache node. check it out in the docs. its pretty much used for exactly what you're after.

a million thanks in one .right now i don't know how the heck to use it cause i'm "kinda" new to mel
and the syntax,as there are no examples in the docs,Anywayz i'll get on the case.thank you once again

Hi there

if you just need to start the movement after the end of the movement of the other one you may use a sinple MEL like this

$i = 0 ;
$i++;
if ( a.rotateX >= 10 )
if ( b.rotateX < 21 )
b.rotateX=b.rotateX + $i;

in this case b object will start its rotation just when the a gets to 10 degrees and it will continue up to 20 degrees.

Hope this works