Categorize objects

Hello!

I have physics rectangles:

1 box

2 box

3 box

4 box

How to categorize these objects and apply global .strokeWidth to all rectangles?

Put them in a table, then apply stroke width in a loop on that table

[lua]

local boxes = { box1, box2, box3, box4}

for key, value in pairs (boxes) do

 value.strokeWidth = 2

end

[/lua]

Thank you, Nick!

Put them in a table, then apply stroke width in a loop on that table

[lua]

local boxes = { box1, box2, box3, box4}

for key, value in pairs (boxes) do

 value.strokeWidth = 2

end

[/lua]

Thank you, Nick!