hello
i'm a bit stuck here:
how can i remove every other value of an array? e.g. 1,2,3,4,5,6 -> 1,3,5
i tried with modulo, but the filter node does not work with arrays...
remove every other value in array
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
remove every other value in array
SI 2015 @ WIN7-64
-
- Posts: 253
- Joined: 17 Feb 2010, 15:13
Re: remove every other value in array
seems like this works.
the "-1" gives me a correct array size. if put to 0 (or other legal ID) the array size does not change.
SI 2015 @ WIN7-64
Re: remove every other value in array
so the value "-1" deletes an array entry?
(so time ago i heard smething similar with -2 or polygons when building topo).
is that true?
(so time ago i heard smething similar with -2 or polygons when building topo).
is that true?
Re: remove every other value in array
find in array then remove from array ?
Re: remove every other value in array
i'd try something like building a new array of half size, separately. Then, "get array indices", multiply by 2, select in original array. Should be faster than activating the "find in array", also somehow I feel more "safe" if new array is already defined, before.
Anyway whatever works, works...
Anyway whatever works, works...
Who is online
Users browsing this forum: No registered users and 34 guests