Previous topicNext topic

is it possible to do this with the modifiers?

Questions, comments, feedback, etc.
Post Reply
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

is it possible to do this with the modifiers?

Post by blackdot »

"change value to 0 unless the value was greater than 0.3 AND smaller than 0.4" so that the value is only not 0 between 0.3 and 0.4?

As far as i figured out the gate modifier would work for the first value: "if value is less than 0.3 make it 0, if greater, leave it unchanged". is there a way do do some wizardry to get the second value? Or generally to make more complex if-thens (without programming :) )?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: is it possible to do this with the modifiers?

Post by Magic »

is there a way do do some wizardry to get the second value?
I don't think that's possible unfortunately (or maybe it's too early in the morning for me to get my head around it :)).
Or generally to make more complex if-thens (without programming :) )
I've been working on that actually. I'm going to try to add a modifier that will allow general expression parsing: http://www.partow.net/programming/exprtk/. Cool eh? So you will be able to do if-then-else and other fun things. But you'll probably need to keep it short so it fits (more or less) in the modifier text box.
blackdot
Posts: 528
Joined: Sun Jul 06, 2014 10:18 pm

Re: is it possible to do this with the modifiers?

Post by blackdot »

Ah cool indeed :)
Post Reply