PDA

View Full Version : Syntax for negative value


Goggle
06-14-2003, 11:24 PM
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.

webster
06-14-2003, 11:34 PM
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

webster
06-15-2003, 12:49 AM
In Your case, try

pCube1.rotateZ = -makeNurbSphere1.startSweep *

*=-270 if you need


[edit]= the * stuff

Goggle
06-15-2003, 11:48 AM
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.

CGTalk Moderation
01-15-2006, 11:00 AM
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.