My first expression

My first expression

Anonymous
Not applicable
227 Views
0 Replies
Message 1 of 1

My first expression

Anonymous
Not applicable
Hi guys, i´m trying to teach mel by myself and with google of course. I see a lot of info and tutorials outthere, but at certain point i can´t continue. i´m really a noob and must to ask to people who know about this. like now xD!

I want to create and expression to control random start animations for the open and close of several doors cannons (several groups with custom attribute "door_cannon1.OPEN_CLOSE") of a old warship driven by an custom attribute in a curve ("CANNON_1ST_LINE_CTRL.OPEN_CLOSE") for a personal proyect.

this is all i have, is crazy i know...
array works well but i cant make the random start animation for the door attribute "OPEN_CLOSE"


if(CANNON_1ST_LINE_CTRL.OPEN_CLOSE == 1)
{
seed (100);
for($i=1;$i<=8;$i++)
{

// int $randStart = rand(1,100);
// $object = ("door_cannon"+$i);
// int $currentFrame = frame;
// $start_stop=smoothstep(21,100,frame);
// $object.OPEN_CLOSE = (frame)*10*$start_stop;
string $myCommand = ("setAttr door_cannon" + $i + ".OPEN_CLOSE (rand(1,100))");
// select ("door_cannon"+$i);
// $object.OPEN_CLOSE = 100;
// select -d;
eval $myCommand;
print ($myCommand + "\n") ;



}
};
if(CANNON_1ST_LINE_CTRL.OPEN_CLOSE == 0)
{
for($i=1;$i<=8;$i++)
{
select ("door_cannon"+$i);
setAttr ".OPEN_CLOSE" 0;
select -d;
}
};


I think this is to much for me but at this point i need to know how to do this jejeje.
i apreciate all help i can recive!

and soo sry for my english, i hope you undertand well.

Thanks!

0 Likes
228 Views
0 Replies
Replies (0)