SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / Expression Problems - Rotating Wheels
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 31-03-2004, 01:10 AM   #1
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default Expression Problems - Rotating Wheels

I have an expression, so whenever I move a wheel on my car, it rotates depending on how far I move it. I assigned it to all 4 wheels (independently) and parented (i also tried grouping them) to the rest of the car. When i move the car, the wheels dont rotate like they should. Any ideas how I would make it so when I move the car, the wheels rotate?
__________________
- Hybrid
I-Iybrid is offline   Reply With Quote
Old 31-03-2004, 01:20 AM   #2
dannyngan
Registered User
 
dannyngan's Avatar
 
Join Date: Dec 2002
Location: Seattle, WA
Posts: 1,154
Thanks: 0
Thanked 1 Time in 1 Post
Default

Since the wheels are parented to something else, they aren't actually translating in the scene. The parent object (or its parent, etc) is translating, and the wheels are just following in the parent object's coordinate space. To make the expression work, it needs to get the translation of whatever is translating everything. If it's the body of the car, then use that. If it's a group object, use that.

BTW: This isn't really a newbie/basics question. This should go into the programming forum.
__________________
Danny Ngan
Animator | Amaze Entertainment
my website | my blog | my job
dannyngan is offline   Reply With Quote
Old 31-03-2004, 02:43 AM   #3
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default

Thnx danny. Ill try and get it figured out. Yea, sorry about that. I didnt really know where to post it, cause to me, it could of gone in either forum. Expressions are brand new to me, so I figured the NewB forum.
__________________
- Hybrid
I-Iybrid is offline   Reply With Quote
Old 31-03-2004, 02:51 PM   #4
I-Iybrid
Simply Maya OG
 
I-Iybrid's Avatar
 
Join Date: Dec 2002
Location: Queensbury NY, US A
Posts: 1,438
Thanks: 2
Thanked 14 Times in 14 Posts
Default

For some reason, its still not working. I select the car body, and put in the rotateZ section "wheel.rotateX = time * -300;" and it just turns the wheel a random degree, and nothing else happens. Any suggestions? The name of the wheel is "wheel" and the carbody is "MitsuEVO". Thnx
__________________
- Hybrid
I-Iybrid 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.