Route Texture to One of Two Outputs

fas11030's icon

Can somebody tell me how I can route one texture to one of two outputs using a switch or gate object of some kind? I tried to use gate, gswitch2, and jit.op with pass and !pass operators, but I'm getting errors every time because apparently they can't be used with textures. What would be the correct object for my application?

2K's icon

The problem is not gswitch2 or gate but that the texture is not properly cleared. Here are two ways of doing what you want.

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

Christien Ayers's icon

Are you sure the gate object doesn't work? It's working for me.

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

fas11030's icon

Sorry, it actually does work. I just made a stupid routing mistake elsewhere in the patch. Thanks!