CGTalk > Software > Autodesk Maya > Maya Programming
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 06-14-2003, 10:24 PM   #1
Goggle
Frequenter
 
Goggle's Avatar
Benjamin
France
 
Join Date: Mar 2003
Posts: 143
Syntax for negative value

Hello,

I want to connect the negative value of rotation with other thing.
my expression is like this :

Objectname.rotateZ = makeNurbSphere.startSweep -270

so I want the same thing but with negative value of rotate Z to inverse rotation.
__________________
Benjamin

 
Old 06-14-2003, 10:34 PM   #2
webster
Frequenter
 
Join Date: Aug 2002
Posts: 286
Create two Cubes and try this expression in the TranslateY of the second cube:

pCube2.translateY = -pCube1.translateY

if you move the first cube in Y, the other Cube moves also in Y, but in the opposit direction
 
Old 06-14-2003, 11:49 PM   #3
webster
Frequenter
 
Join Date: Aug 2002
Posts: 286
In Your case, try

pCube1.rotateZ = -makeNurbSphere1.startSweep *

*=-270 if you need


[edit]= the * stuff

Last edited by webster : 06-14-2003 at 11:52 PM.
 
Old 06-15-2003, 10:48 AM   #4
Goggle
Frequenter
 
Goggle's Avatar
Benjamin
France
 
Join Date: Mar 2003
Posts: 143
Well, it's doesn't work because I don't want to inverse startsweep.

I want to inverse the direction of the Z rotation, only negative value for Z rotation.
__________________
Benjamin

 
Old 01-15-2006, 11:00 AM   #5
CGTalk Moderation
Lord of the posts
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,480
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:12 AM.


Powered by vBulletin
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.