set uniforms from script