Page 1 of 1
TouchDesigner Math Chop like behaviour with expressions?
Posted: Wed Oct 18, 2017 6:52 am
by mnvr
In TouchDesigner I use the math chop quite often to easily change a value from a range of 0-1 to a negative 1-0 or to some other value like 0-360. Is there a similar function in Magic or can this be easily accomplished with the expression parameter?
Re: TouchDesigner Math Chop like behaviour with expressions?
Posted: Wed Oct 18, 2017 2:48 pm
by Magic
For that I would use the Scale modifier, which can have any positive or negative value.
The Expression modifier can do the same thing, but it uses more CPU resources, so it would be overkill.
https://magicmusicvisuals.com/downloads ... fiersTable
Re: TouchDesigner Math Chop like behaviour with expressions?
Posted: Tue Dec 19, 2017 1:35 am
by DemBambiSeiMudder
How about a map modifier like Arduino and Processing offer it?
Problem would be to enter multiple parameters on one modifier. I guess the current UI doesn't support that.
But I guess with expression modifier it is easy.
The math can be found here:
https://www.arduino.cc/reference/en/lan ... /math/map/
Re: TouchDesigner Math Chop like behaviour with expressions?
Posted: Tue Dec 19, 2017 4:35 pm
by Magic
Yes, the Expression modifier would be the way to do that.