maximum channel value (in chops)

   2992   1   0
User Avatar
Member
47 posts
Joined: Dec. 2008
Offline
hi all,

is there a way to find the highest (and lowest) value a channel hits?

i'd like to setup a math chop that finds the highest and lowest values and then fits them between 0 and 1…

thanks
to a man with only a hammer every problem looks like a nail.
User Avatar
Member
1631 posts
Joined: July 2005
Offline
Hi,

I believe the two functions you're looking for are:
/ -> exhelp icmin
float icmin (float input_index, float channel_index)
Evaluates a CHOP's input channel's minimum value.


EXAMPLES
| icmin(0, 2)
|

RELATED
ics
ic
ice
icr
icn
icmin
icmax
icl
oc


REPLACED BY
- hou.ChopNode
—-
/ -> exhelp icmax
float icmax (float input_index, float channel_index)
Evaluates a CHOP's input channel's maximum value.


EXAMPLES
| icmax(0, 2)
|

RELATED
ics
ic
ice
icr
icn
icmin
icmax
icl
oc


REPLACED BY
- hou.ChopNode
For every channel, you'll replace the channel index with $C so for example, you'll put the following in the From Range parameters of the Math CHOP:
icmin(0,$C) , icmax(0,$C)

Hope the above helps!

Cheers!
steven
  • Quick Links