If you're still getting a context error then we don't have the full
picture of what you're doing.
Here's a basic scenario where Build Array from Set works:
http://screencast.com/t/yJ4y6mzUGm
On 18/02/2013 6:04 PM, Adam Sale wrote:
Thanks Leonard. I am still getting the same context error thought.
I was able to convert context using the Select in Array, but it is
asking for an index.
My particles have an initialized value on them that sets a customID
per particle randomly between 0 and 2
Do I just pull in this id, and use it as the index for the Select in
Array?
My thinking is that this should take my array of values and only
implement them on the ID I choose.
On Mon, Feb 18, 2013 at 2:54 PM, Leonard Koch
<[email protected] <mailto:[email protected]>> wrote:
Build array from set works also with arrays and arranges the
values like this:
Particle 1:
Id = 0
scalararray = [m, n, o]
Particle 2:
Id = 1
scalararray = [a, b, c]
Particle 3:
Id = 2
scalararray = [x, y, z]
Build array from set output:
[m, n, o, a, b, c, x, y, z]
On Mon, Feb 18, 2013 at 11:39 PM, Adam Sale <[email protected]
<mailto:[email protected]>> wrote:
I guess the subject frames my question.
I am doing some crowd work, where I am using distance to
neighboring particles and if true, then rescaling the
velocities of certain particles from their current velocity to
a new velocity.
Unfortunately I am running into context issues.
Is there a way for me to convert from an array of values per
particle to a single scalar?
I am looking into archives, but am clearly not asking my
question correctly..
Thanks
Adam