How to 'get slice index'?

Hi evvvveryone,

I’m a newbie, just starting out and neglecting my girlfriend because of it…so this might be a bit of a simple question.
I’ve got a spread of spread count 16. All the slices are set to 0 unless I have changed them-in which case-particular slices would be an integer between 1-16. so, for example, I could have a spread containing: 0,0,0,0,5,0,0,0,0,0,0,0,13,0,0,0.

What I would like to do is pass these values to a getSlice’s index pin. However, I would like to be able to check for zero values and eliminate them from the spread. So, using the above example, a spread of spread count 2 would be sent to the getSlice index pin, and it’s values would be 5 and 13.

Does anyone know a way to achieve this,



go with this solution:

getridofzero.v4p (3.0 kB)

Perfect, thankyou m9dfukc!