Friday, 28 December 2012
right angle curve Gen Thing
int $segments=20;
int $i=0;
float $xCoord=0;
float $yCoord=0;
float $zCoord=0;
int $direction;
string $curveName=`curve -d 1 -p 0 0 0`;
for ($i=0;$i<$segments;$i++)
{
$direction=rand(0,3);
if ($direction==0)
$xCoord+=rand(-30,30);
else if($direction==1)
$yCoord+=rand(-30,30);
else if($direction==2)
$zCoord+=rand(-30,30);
curve -d 1 -a -p $xCoord $yCoord $zCoord $curveName;
}
Saturday, 15 December 2012
indian macaroon/rons
Thoothukudi Macaroon
2 egg whites - beat them to oblivion. go past the shiny stage and beat till dull.
slowly add 1/2 cup of icing sugar, whilst beating at high speed
slowly add 1/2 cup of roasted ground cashews, WBAHS ^
pipe, bake - GM2 'til firm.
alternatively, make cookies by using 1 cup icing sugar, 1 cup ground cashews
alternatively, make cookies by using 1 cup icing sugar, 1 cup ground cashews
Friday, 14 December 2012
outliner woes
when Outliner spazzes out and you can't middle drag to group/ungroup shit, check the sort-by is set to Scene Hierarchy!
Monday, 10 December 2012
delta position script
script dump pos-change/accel
int $currentFrame=`currentTime -query`;
float $currentX, $currentY, $currentZ, $pastX,$pastY,$pastZ;
currentTime $currentFrame;
$currentX=`getAttr camera1_animatic8:pCube1.tx`;
$currentY=`getAttr camera1_animatic8:pCube1.ty`;
$currentZ=`getAttr camera1_animatic8:pCube1.tz`;
//currentTime $pastTime;
$pastX=`getAttr -t ($currentFrame-1) camera1_animatic8:pCube1.tx`;
$pastY=`getAttr -t ($currentFrame-1) camera1_animatic8:pCube1.ty`;
$pastZ=`getAttr -t ($currentFrame-1) camera1_animatic8:pCube1.tz`;
float $deltaX, $deltaY, $deltaZ;
$deltaX = $currentX-$pastX;
$deltaY = $currentY-$pastY;
$deltaZ = $currentZ-$pastZ;
float $deltaXsq= `pow $deltaX 2`;
float $deltaYsq=`pow $deltaY 2`;
float $deltaZsq=`pow $deltaZ 2`;
float $magDelta;
$magDelta=(`sqrt ($deltaXsq+$deltaYsq+$deltaZsq)`);
textEm1.speed = $magDelta * 100;
Subscribe to:
Posts (Atom)