Question while playing card section


#1

proc cardsection()
{
for($j = 0; $j < 10; $j++)
{
for ($k = 0; $k < 10; $k++)
{
string $pName[] = polyPlane -w 1 -h 1 -sx 1 -sy 1 -ax 0 1 0 -cuv 2 -ch 1;
move $j 0 $k;
string $shape[] = listRelatives -shapes $pName[0];

    string $map = $pName[0] + ".map[2]";
    select -r $map;
    string $uvpivot = $shape[0] + ".uvPivot";
    setAttr $uvpivot -type double2 ($j*0.1) (1-($k*0.1));
    polyEditUV -r 0 -u ($j*0.1) -v (1-($k*0.1));
    select -d $map;
    
    $map = $pName[0] + ".map[3]";
    select -r $map;
    $uvpivot = $shape[0] + ".uvPivot";
    setAttr $uvpivot -type double2 (($j+1)*0.1) (1-($k*0.1));
    polyEditUV -r 0 -u (($j+1)*0.1) -v (1-($k*0.1));
    select -d $map;
    
    $map = $pName[0] + ".map[0]";
    select -r $map;
    $uvpivot = $shape[0] + ".uvPivot";
    setAttr $uvpivot -type double2 ($j*0.1) (1-(($k+1)*0.1));
    polyEditUV -r 0 -u ($j*0.1) -v (1-(($k+1)*0.1));
    select -d $map;
    
    $map = $pName[0] + ".map[1]";
    select -r $map;
    $uvpivot = $shape[0] + ".uvPivot";
    setAttr $uvpivot -type double2 (($j+1)*0.1) (1-(($k+1)*0.1));
    polyEditUV -r 0 -u (($j+1)*0.1) -v (1-(($k+1)*0.1));
    select -d $map;
    
    select -r $pName[0];
    
    string $attrName = $pName[0] + ".rotateX"; 
    string $attrTy = $pName[0] + ".translateY";
    float $startAngle = rand(80, 120);
    float $endAngle = rand(-10, 10);
    int $startFrame = rand(1, 20);
    int $totFrame = rand(10, 20);
    float $incAngle = ($endAngle-$startAngle)/$totFrame;
    float $startHeight = rand(-0.05, 0.05); //
    float $endHeight = rand(0.9, 1.1); //
    float $curHeight = $startHeight; //
    float $incHeight = ($endHeight-$startHeight)/$totFrame;
    float $curAngle = $startAngle;
    for ($i = $startFrame; $curAngle > $endAngle; $i++)
    {
        currentTime $i;
        rotate ($curAngle) 0 0;
        setKeyframe $attrName;
        move $j $curHeight $k; //
        setKeyframe $attrTy; //
        $curHeight += $incHeight; //
        $curAngle +=  $incAngle;
    }
    float $randMax = rand(abs($endAngle)/2.);
    for ( ; $i < 120; $i++)
    {   
        currentTime $i;
        rotate ($curAngle) 0 0;
        setKeyframe $attrName;
       // move $j $curHeight $k; 
       // setKeyframe $attrTy; 
       // $curHeight += $incHeight; 
        $incAngle = rand(-$randMax, $randMax);
        $curAngle +=  $incAngle;
     }
  }

}
select -all;
sets -e -forElement lambert2SG;
selet -cl;
}
//select -all; delete;
cardsection();

In this way, I made a basic card, but if you are looking for a way to hear the remaining part of the card first, how should I proceed?