SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / expression question
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 17-05-2004, 04:34 PM   #1
bingo
Registered User
 
bingo's Avatar
 
Join Date: Sep 2002
Location: Cambridge UK
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default expression question

I'm sure this must be easy to do but I'm unable to find any decent help in the docs.

I have a joint rotation that I am using to drive the rotation of a different joint. I used the conecction editor to to connect the output rotation in z of joint 1 to the input rotation in z on joint 2. Now this worked fine and dandy. But ... it doesn't work in the other 2 axis, or more precisly it does but I want to reverse the effect. So how do you write and expression the connects 2 attributes but reverse the 2nd one? I tried the following below but it didn't work. I have the idea there would have to be brakets in there somewhere but I'm not sure where.

giant_eagle:wing_shoulder_r.rx = giant_eagle:wing_shoulder_l.rx -1

Any help for what I'm sure must be a simple answer would be much appreciated.

Cheers.
bingo is offline   Reply With Quote
Old 17-05-2004, 04:51 PM   #2
bingo
Registered User
 
bingo's Avatar
 
Join Date: Sep 2002
Location: Cambridge UK
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default

I've sorted it ...

giant_eagle:wing_shoulder_r.rx = (giant_eagle:wing_shoulder_l.rx * -1)

Cheers.
bingo 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.