Jump to content
DeeLan

Read CHOPs Channels in SOPs without geometry CHOP -> Channel SOP

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×