Highlight Grid Images in a PWindow
I have cobbled together a couple of patches I found on the forum to create a grid of thumbnails of videos in a folder.
Each image is added to a matrix and displayed in a pwindow.
The grid is intended to be an interface and I am looking for a good way to highlight the selected clip eg place a mask over or beside each image.
Is it possible to have more than 1 layer in a pwindow? I dont want to have to redraw the thumbnails.
you might try jit.submatrix, so you roll your mouse over one of the thumbnails, and based upon where it is, you know which thumbnail you're hovering over. Then use jit.submatrix to grab out that portion, run it through jit.scalebias or jit.op @op *, it can highlight by being overall brighter than the others.
Also you could have a jit.op or jit.scalebias for each thumbnail before it goes to the main matrix, if the thumbnail is selected, up the value and re-bang it into the big matrix.
jit.gl.render/jit.gl.videoplane/jit.gl.texture/jit.gl.gridshape could also do it, just have a semi-transparent gridshape over each thumbnail area, and only enable the one you're mousing over.
Not sure about the layering in a standard jit.pwindow, would be interested to know that too.
Thanks for those options - I'll get patching!
or when you don't need updates of the videos (for CPU saving purposes) you could use a semi transparent panel and change its position (and opacity for that matter) I tend do use panels often to do these kind of things
best
pieter