Patch optimisation

Jun 13, 2011 at 5:12pm

Patch optimisation

Hi i’m relatively(?) new to Max and i’m searching a way to avoid to put many switches as I’m doing here .
Can I use Sel ? How ? I need some explanation .

I work on a kind of simple vjing tool with V001 shaders .

– Pasted Max Patch, click to expand. –
#57584
Jun 13, 2011 at 5:51pm

I don’t think there is anything inherently wrong with switches and gates. why do you feel you should avoid them?
But you could probably reduce it to 2 jit.gl.slab objects (since you only ever have 1 of them in use by the look of it) and while one is working, change the shader of the other one with the “read” message then switch over to the second one while you change the 1st one… not sure if that’s any simpler since you will need further logic for the control messages…

#206299
Jun 13, 2011 at 5:51pm

I don’t think there is anything inherently wrong with switches and gates. why do you feel you should avoid them?
But you could probably reduce it to 2 jit.gl.slab objects (since you only ever have 1 of them in use by the look of it) and while one is working, change the shader of the other one with the “read” message then switch over to the second one while you change the 1st one… not sure if that’s any simpler since you will need further logic for the control messages…

#206409
Jun 13, 2011 at 6:40pm

If i need to put an effect and after a second effect I need to change all switches . I would like to put a number on effet .(1 =effect 1 2=effect 2)to trigger them easily.(much easier? )
thank you.

#206300
Jun 13, 2011 at 6:40pm

If i need to put an effect and after a second effect I need to change all switches . I would like to put a number on effet .(1 =effect 1 2=effect 2)to trigger them easily.(much easier? )
thank you.

#206410
Jun 13, 2011 at 7:48pm

not sure I understand. why not use a [gate 7] ?

– Pasted Max Patch, click to expand. –
#206301
Jun 13, 2011 at 7:48pm

not sure I understand. why not use a [gate 7] ?

– Pasted Max Patch, click to expand. –
#206412
Jun 13, 2011 at 8:50pm

Because I’m a newbie !!! !

thank you very much I never seen any arguments with [gate ]

SImple . The best . See you soon ..

I like max much everyday ! !

#206302
Jun 13, 2011 at 8:50pm

Because I’m a newbie !!! !

thank you very much I never seen any arguments with [gate ]

SImple . The best . See you soon ..

I like max much everyday ! !

#206413

You must be logged in to reply to this topic.