matrix2 ch2(string channel)
matrix2 ch2(string channel, float time)
If the node parameter referenced by channel
is a matrix type, the base parameter name
can be used to return the all components as a matrix.
Evaluates a channel (or parameter) and return its value. The time is specified in seconds, not in frames. If you don’t specify the time, the function returns the value at the current time.
Houdini includes several functions to evaluate channels/parameters of different types.
-
To get a float or string without needing to know the parameter type, use ch.
-
To get a float, use chf.
-
To get a string, use chs.
-
For integer parameters, use chi
-
For a ramp parameter, use chramp or chrampderiv.
-
Use chid to get an
op_id
,parm_index
andvector_index
to evaluate the channel without having to do string resolution.
See also | |
utility |