Crop videoplane

Florent Ghys's icon

Hello, I am trying to replicate the Crop effect in Adobe Premiere. I have something that works using alphamasks but it seems a little overkill and I'm wondering if there is any optimized way to do this (shaders?).

I'm using four matrices loading four images of a black line (left, right, bottom, top). Matrices are moved using jit.rota and combined with jit.concat. The resulting matrix is sent to a jit.gl.texture and this texture goes to the right inlet of a jit.gl.slab @file cc.alphaglue.jxs.
Everything works but there is probably an easier and more efficient way to do this, right?

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


Federico-AmazingMaxStuff's icon
Florent Ghys's icon

thanks so much!! I really appreciate!

Jean-Francois Charles's icon
Bill 2's icon

Thanks Federico! :-)

That's so clear and simple compared to my clumsy attempts.

Roman Thilenius's icon

i also use rota, concat ´n stuff, probably not not ideal but works for simple jobs.