Change Object to an Array

Hi i try to get the Yellow marked "x y" changed, that it comes out like in the Blue Circle.

So that x gets 0 and y gets 1

Thx in advance.

xy

function node...

msg.payload  = [msg.payload.xy_color.x, msg.payload.xy_color.y];
return msg;

Just as simple with a change node too

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.