Reorganize spreads

Hi people,

I have a big problem with slice ordering:

I need to chain spreads of different slicecounts (let’s say 6, 20, 6, 20, etc), I am currently using Insertslice but spreaded Index and BinSize seem to disturb slices order (first slice of my second spread is at the beginning of the first spread, u see?). The challenge is that I have a dynamic number of input spreads

Cheers,
Ars Robota

sounds like a task for Cons (Spreads) ?!

Hi Joreg!

Well, originally, it is. The problem is that since I have a dynamic number of spreads, I should connect each new spread to a new Cons pin…

Originally, this is for a multitouch app, where each new touch brings a new spread.

Thanx

i’d pimp that demo i did for a similar problem, but it is so outdated that i’m afraid it won’t be of much help here.

Thanx diki, your patch gave me the answer at first glimpse! Oh man, I’m loosing the basis!!! Of course, Stallone was the solution, but considering the problem from a 3D approach instead of dynamic binsize…

OK, this trouble is only half-solved, cause InsertSlice adds a slice I haven’t asked for. It seems I can’t get rid of it.

EDIT: Well, I tried keysort but I encounter the same problem: I can’t chain many different-sized spreads without having strange index behaviour… I almost feel desperate… help would be really appreciated!

Thanx a lot!

insertslice problem.v4p (9.3 kB)

To be simpler, here is what I try to do.

spreads reordering.v4p (15.3 kB)

if you know the spread counts, you can patch it like this:

spreads reordering2.v4p (20.3 kB)

Thank u very much tonfilm, once again you help me! That’s exactly what I needed.

Take care,
aR