Forum

Setslice with spread index

vl

#1

hey guys,
i try to learn vl and have a simple problem. I want to setslice a spread with an spreadable index. In v4 it works fine but if i try to make it in vl i dont get the same bin size at the output like the input. Maybe the foreach loop isnt the right way…?


#2

use an accumulator instead of a splicer to hand the same spread from iteration to iteration. splicers make new spreads, but what you want is keeping the same spread and do a set slice. see also:
https://vvvv.gitbooks.io/the-gray-book/content/en/reference/vl/loops.html


#3

ahh, ok thanks! It works, great.