Highlight Grid Images in a PWindow

    Mar 20 2011 | 9:47 pm
    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.

    • Mar 21 2011 | 2:13 am
      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.
    • Mar 21 2011 | 9:01 am
      Thanks for those options - I'll get patching!
    • Mar 21 2011 | 9:24 am
      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