Custom camera zooms

I want to be able to set ‘keyframes’ for zooming in, say the camera goes from 10, 10, 10 in my scene to 10, 5, 5 when I move the scroll wheel in (and vice versa), how could I do this?

A hint: you may split the task into simpler tasks, when you solve them, you can combine their solutions:

  • convert the scroll wheel movement into a number from 0 to 1
  • convert this number to a position from (10,10,10) to (10,5,5)
  • move the camera to this position
1 Like