Maya Training

Creating characters In Maya and Zbrush

Maya Training

Creating character renders in Maya 2017 and Arnold

Maya Training

Spach-Alspaugh House the complete courseware
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 17-04-2008, 03:23 PM   #1
phonk
Registered User
 
phonk's Avatar
 
Join Date: Sep 2004
Location: Holland
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default supernewbie question

I'm a worthless melscripter, but I need to setup a very very simple thing:

I have five objects. Now I want to make object2 translate 0.9 times the translation of object1. And make object3 translate 0.8 times the translation of object1, and so forth..

I reckon it's deadsimple, but I just don't have the time to dive into melscripting for a few days to get the basics in my head..

t.i.a.
__________________
'surf now, apocalypse later'
phonk is offline   Reply With Quote
Old 17-04-2008, 04:45 PM   #2
phonk
Registered User
 
phonk's Avatar
 
Join Date: Sep 2004
Location: Holland
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default

got it!!
Googled a bit and found this script:

int $frameOffset = 3;
int $currentFrame = `currentTime -q`;

for ($i=1; $i<=300; $i++)
{
int $currentOffset = $currentFrame - ($frameOffset*$i);
string $CMD = "setAttr domino" + $i + ".rz " + `getAttr -t $currentOffset dominoMaster.rz`;
eval $CMD;
}

that does the trick!
whoowhoopeedoo
__________________
'surf now, apocalypse later'
phonk is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2017 SimplyMaya - vBulletin® Copyright © 2000-2017, Jelsoft Enterprises Ltd.