Lost Adventurer, Aleks Kirilenko (3D)
LC #42 Pipers Alley

View Full Version : Syntax for negative value

06-14-2003, 10:24 PM

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.

06-14-2003, 10: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

06-14-2003, 11:49 PM
In Your case, try

pCube1.rotateZ = -makeNurbSphere1.startSweep *

*=-270 if you need

[edit]= the * stuff

06-15-2003, 10: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.