Previous topicNext topic

TouchDesigner Math Chop like behaviour with expressions?

Questions, comments, feedback, etc.
Post Reply
mnvr
Posts: 1
Joined: Wed Oct 18, 2017 6:44 am

TouchDesigner Math Chop like behaviour with expressions?

Post 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?
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: TouchDesigner Math Chop like behaviour with expressions?

Post 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
DemBambiSeiMudder
Posts: 58
Joined: Thu Oct 20, 2016 10:43 pm

Re: TouchDesigner Math Chop like behaviour with expressions?

Post 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/
Magic
Site Admin
Posts: 3440
Joined: Wed Apr 09, 2014 9:28 pm

Re: TouchDesigner Math Chop like behaviour with expressions?

Post by Magic »

Yes, the Expression modifier would be the way to do that.
Post Reply