Enum or not enums?

Hello fellow vvvv’ers (or whatever we are called!)

I have run into a little problem and after some extensive forum reading, re-reading and a lot of head scratching I have to decided to post my question.

I am writing a software video mixer using the DM2 as a control surface via midi. I am trying to set it up so that all the available buttons, fader, and rings do most of the controlling so you don’t have to use much of the patching window once you have set up your set.

All is going well, I have some node switches for different shader FX, the joystick and scratch rings work for throwing the video on a plane around in 3d space etc. Nice.

And now to colour, or more specifically blend modes, as vvvv doesnt seem to have many colour changing nodes. So I thought I would use the Blend Renderstate Advanced modes and assign my 4 favourites to 4 buttons on the DM2 But I have run into a problem! How can I set a state for this node so I can press a button? I have also looked at colorchannel but this suffers from the same enum problem. I have seen the other enum nodes but really don’t have a clue!

Any help would be much appreciated as it is bugging me and I usually love the challenge. but not today!

stu

Ord2Enum does the trick

Oh dear as simple as that huh? brilliant! thank you Desaxismundi.

Ps. What does the name mean? Desaxismundi?

You’re welcome!
well, it’s a smart nickname ;) derivating from Axis mundi…so desaxismundi can be understood like this : the constant reorganization of our representation of the earth as a space model(what between earth and sky?) through times (flat world, then Galillee,then quantum physics,internet, etc…)

see you…

Well, that is cool. Des.?

Anyways I have been playing with all the blendmodes and colorchannel too,thanks to you! had to patcha little reset/panic button as it all gets a bit complicated with alpha blend on/off and 4 colorchannels to play with!

Thanks again I would have gone to bed, but I will be up for hours now with my new found knowledge.

stu