dimdst bug?

prismspecs's icon

I am at my wit's end! Trying to simply overlay an image on another image at a random location. Problem is there is some sort of de-sync between startdim and enddim and the image gets all fat and skinny instead of staying in proportion. The code is a little tangled because I've been trying different stuff for over an hour to no avail. What am I overlooking?

Max Patch
Copy patch and select New From Clipboard in Max.
mattyo's icon

I think your problem was that the trigger you were using to bang out the distdim business was being banged twice, since the message box (dstdimstart $1 $2, dstdimend $3 $4) is going to make that trigger bang twice rather than once. I think this fixes it. You might also want to look at jit.rota....

\M

Max Patch
Copy patch and select New From Clipboard in Max.