ronviers
03-22-2010, 02:02 PM
I am trying to center a locator between two particles in an expression. It is not working. Here is how I tried to do it. Does anyone know of a good way to do this?
vector $pos1=`particle -at position -id 11 -q particle`;
vector $pos2=`particle -at position -id 3 -q particle`;
vector $mid=($pos2-$pos1)/2;
setAttr up_loc.translate $mid;
Edit: Never mind, got it figured out.
Thanks
vector $pos1=`particle -at position -id 11 -q particle`;
vector $pos2=`particle -at position -id 3 -q particle`;
vector $mid=($pos2-$pos1)/2;
setAttr up_loc.translate $mid;
Edit: Never mind, got it figured out.
Thanks
