SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / supernewbie question
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 17-04-2008, 02: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, 03: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
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.