DeeLan Posted November 16, 2017 Share Posted November 16, 2017 Does anyone know how to read channels from CHOPs without jumping through the whole Geometry CHOP -> Channel SOP hoop? I have a CHOP network with 1 channel, and I want multiple objects to use the data in that channel in different ways. So instead of making a new CHOP network for each object, I'd like to just keep the one network and have the SOP networks go and "grab" the data as needed. Something like the 'chinput' VEX function but for SOPs would be perfect! I need to be able to grab the data at different times/samples depending on a point attribute, so the method of using a 'chop' expression wouldn't cut it. At the moment I've got a line with as many points on it as there are samples, then transferring the channel data over using the standard method, and then sampling the values from the points on that line. This method works, but feels quite clunky. Quote Link to comment Share on other sites More sharing options...
bonsak Posted November 16, 2017 Share Posted November 16, 2017 Isnt that what the chop expression is for? chop("/ch/ch1/wave1/chan1") -b Quote Link to comment Share on other sites More sharing options...
galagast Posted November 16, 2017 Share Posted November 16, 2017 Hi, I attached a file that goes through some ways I found that will read a channel from CHOPs using SOP wrangles. It is based on the suggestion from this post of adding a spare parameter that reads in the channel using a chop() hscript expression. Then from there, I just discovered that the ch() vex expression can have a second argument that accepts time as an input! With that, you can now use any attribute from your points to sample the channel. In the example file, I sampled using the standard point numbers, and another one using UVs. H16.5.268 Indie - chop_to_sop.rar 1 1 Quote Link to comment Share on other sites More sharing options...
DeeLan Posted November 17, 2017 Author Share Posted November 17, 2017 11 hours ago, galagast said: the ch() vex expression can have a second argument that accepts time as an input! Can't believe I never knew that! Life just got a whole lot easier! Also thanks for the scene. That second method looks like exactly what I need! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.