How change material on generated GO with 2 sprites (SOLVED)

This work only in script? how about module?

or use msg.post from module to script?

or i make in init()

go.property("my_material", resource.material("/material.material"))

and after in module

local s1_l = msg.url(nil, body.s1, "l")
local s1_r = msg.url(nil, body.s1, "r")

go.set(s1_l, "material", self.my_material)