Click and zoom on an image

Hi,

I’m stuk on this task since two days… hope someone could help.

The attached patch shows an image.
Each time you click on it, its translated so that the pixel you clicked is positioned in the center of the windows. And this, works.

Now, I wish that each time the image is repositioned, it zooms a bit - let’s say, scales +0,1.

For that, I created a similar transform list (green nodes) as i did for the translation task. Pictures zooms each time you click, but doesn’t get correctly translated anymore.

Any idea?
regard

michele

test composite tranformations list funziona solo translations.vuo (11.6 KB)

I succeeded in making it work.
Briefly, translation should be multiplied by the scale factor.
Perhaps there’s a more elegant solution, mine, attached, is quite tricky - glad to know in case.

test composite tranformations list funziona sia translations che scale.vuo (12.7 KB)