Is it possible to re-order jit.gl.slab real time ?

Andro's icon

Hi everyone,

After 3 months of studying Max/Jitter I've got a new semi finished VJ set that I'm working on which only uses 3d models running through jit.gl.slab with .jxs effects in each slab.
The problem is I can't figure out how to rearrange the order of the jit.gl.slab effects. I can use a gate to route the texture output to one individual slab but that just seems limiting and doesn't allow me to chain them on the fly.

Lets say I have 4 jit.gl.slab effects 1,2,3,4 in a chain.
But i want the texture output to go through 4,2,1,3 or 2,1,4,3 or any other possible combination.

Is there any object that I can use to do this ? Or is it just some simple answer thats staring me in the face ?
I've been trying to figure this out for the last few days but have to admit I'm stuck.
Any and all help would be greatly appreciated :)

Stephane Morisse's icon
Andro's icon

Hi Stephane, I just downloaded it and the idea seems great but the patch is pretty big and I think it do's far more things than i need it to. For live use I want to be able to say make a few message boxes with the order 1,2,3,4 or 4,2,3,1 and then be able to cycle through these with a midi in going to a sel object to bang the message. Maybe its possible with matrixctrl but I just can't figure it out :(

Pedro Santos's icon

Maybe something like this? Use forward and receive pairs and manage the processing order...

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

Hi Pedro ! Thanks for the patch, its a bit hard for me to understand the scripting part :) but the forward and receive objects are certainly helping me down the right path ! Thanks a lot !

Les Stuck's icon

I've done this sort of patching using matrixctrl to control the router object to pass textures around.

Just label it with your source and all video effect outputs on the top of matrixctrl (columns), and all the fx outputs and your final output along the sides of of matrixctrl (rows).

Keep in mind that the numbering for router starts at 0.

You can patch live or you can store different patch configurations by controlling matrixctrl with preset or pattrstorage.

Note that, although one source can go to multiple effects, trying to combine multiple effects to one destination doesn't work so well. You'll just get the last texture.