View Single Post
# 1 22-03-2007 , 02:59 PM
Registered User
Join Date: Jan 2007
Location: Tulsa
Posts: 3

Scirpt help Please

Sorry to bother you guys with this but can you tell me what I am doing wrong? I am trying to get what ever geometry I have selected to instance its self every of many frames. Here is the scrpit,

global proc nhGeometryInstancer ()
{

//Declare the variables

string $objSel[];
int $rateOfFire;
int $time;
int $dupFrame;
int $fps;
int $count;


$objSel = `ls -sl`;
$rateOfFire = 5;
$fps = 24;
$time = `currentTime -q`;
$dupFrame = $rateOfFire / $fps;
$count = 1;

if ($time = $dupFrame * $count);
{
instance $objSel;
$count ++;
}
}



As I am sure you can tell I am kinda new to mel so any help would rock.

-nathan