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
maximum channel value (in chops)
3205 1 0- artzor
- Member
- 47 posts
- Joined: Dec. 2008
- Offline
- stevenong
- Member
- 1634 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
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