alembics / disco-diffusion

Other
7.46k stars 1.13k forks source link

Zooming to specific pixel #89

Closed tjthejuggler closed 2 years ago

tjthejuggler commented 2 years ago

I'm trying to write a little code that steers the zoom into a specific pixel, but I can't quite figure out how x,y translate is behaving. For example, if i am using a [768,512] image, and I want to zoom into 100,200 over 30 frames, how do I calculate the translate and zoom numbers needed to do this. Sorry if this is the wrong place to ask, I've been stuck for awhile and am not getting much help on Discord/Reddit. Any guidence would be incredible, thanks so much!

tjthejuggler commented 2 years ago

I found out that translate here is by pixels.