JavaScript Number / Structure / Queue to RGB Color?

dunkelelf's picture

Hey

I created the following JavaScript object:

function (__structure outList) main(__number r, __number g, __number b, __number a)
{
   var result = new Object();
   val = new Object()
   val.red = r;
   val.green = g;
   val.blue = b;
   val.alpha = a;
   result.outList = val;
   return result;
}

The structure is queued up (25 times) and send to another Iteration. There, I have a Structure Index and Structure Key to resolve the values. However, after the last structure key there's the 'member', which has the value 0.02something, but won't get transmitted to the RGB Color patch? When I put a Structure Count behind the last Structure Key it says 1 'member' with that value, but even in debugging mode, it stops there. What's wrong? Why does the value not get through to anything else?

Thanks!

dunkelelf's picture
Re: JavaScript Number / Structure / Queue to RGB Color?

The damn sprite was not enabled. Took me 2 hours to figure that out. :(