Jump to content

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.

Link to comment
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

  • Like 1
  • Thanks 1
Link to comment
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!

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...