I have 2 keyframes. 1 and 100. Basically I am animating lights coming on. I don’t want the to gradually come on. I want the power to stay at 0 until frame 100 where it comes on.
How do I do this. I can only figure out how to do it by copying the keyframe where the power is 0 to the next 99 frames.
You could key the zero value at frame 99 (no need to copy it to all the frames in between).
You couild also set the interpolation mode to ‘Constant’. Select your keys, then press T. That will give you the interpolation options, and ‘Constant’ is the one that you want.
It can be more ‘future-proofing’ to set the extra key at 99 though. As you make other changes, and switch interpolation modes in the scene, you may end up smoothing out something that you wanted to stay constant. Putting in a key makes what you want to do explicit.
Surprisingly that didn’t work. Set it at 1 to a power of zero then at 50 and then at 99 just to be sure after trying multiple things and mode to Constant. It still gradually increases the light from 1 to 100.
Depending how many keys you set, you could get a bit of overshoot in the curve when there’s a big gap between keys. You can fix that by adding an extra ‘holding’ key at either end. A bit like with holding loops in sub-division modeling.
Or you can set the interpolation to ‘Vector’ which will keep it running straight from one key to another. That still needs to be watched if you go to ‘spline’ your animation, and select all the keys when you do so.