I am currently using the absTime.seconds function in the rotateY portion of my GEO node. Is there a way to use a KeyboardIn CHOP and somehow multiply the value of rotateY (absTime.seconds) by a 1 or -1 depending on whether the key is pressed? Or any other method?
I’m wanting the GEO to rotate clockwise when one key is pressed and rotate counterclockwise when a different key is pressed. Not sure if any of this is possible but, also when neither key is pressed I would like it to not rotate at all.
You can use two keyboard in CHOP, two speed CHOP, and a math to subtract to the two numbers.
Example attached. Rotate with Keyboard IN.toe (3.7 KB)
In this example, use the letters ‘m’ and ‘n’ for clockwise and counterclockwise rotations.
You can think about the speed CHOP like a car accelerator pedal, when you press down it moves forward. (PS: You can also feed negative values to make it moving ‘backwards’).
The math is subtracting the two values, and has been rescaled to 50 (look at the To Range value). In my case 50 looked like a good rotation increment, but change it to suit the visual effect you have in mind.
The lag is just there to provide some smoothness.