Search - User list
Full Version: How to get channel values from other inputs with Channel Wrangle CHOP?
Root » Houdini Indie and Apprentice » How to get channel values from other inputs with Channel Wrangle CHOP?
probiner
Just like we can do @P = v@opinput1_P ; for Wrangle SOP I tried for Channel CHOP to do @V = @opinput1_V ; but it doesn't seem to import the same channel name and sample plugged on the second input.




How can we bring in values from other inputs? I'm not interested in transform structs for SRT but arbitrary data.

While one can always perform some calculations with Math CHOP, it would be maybe less verbose an preferable to have the freedom of vex to perform calculations.


Cheers
jsmack
the @opinput syntax is a one-off special for the attrib vop. The channel context never got the CVEX makeover, so we are left with the old ‘chinput()’ function.

chinput(int opinput, string channel_name, float sample) chinput(int opinput, string channel_name, int sample)
or

chinput(int opinput, int channel_index, float sample) chinput(int opinput, int channel_index, int sample)
probiner
I was looking about this one for a while!. Thanks jsmack, This does the trick! Example attached.



I wonder why chinput() has “type”, since I thought it was always float. Can one import multiple channels relative to the same attribute (vector, quat, matrix) with this function or the “type” is for some strict cases?
duebergang
I hope this gets updated to become more inline with other parts of the program.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB