How do I set a viewport to be my shader_param/refl_Tx using script?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By 19PHOBOSS98

I’ve been trying to make portable scenes of mirrors but I have to manually set the “shader_param/refl_tx” to use NewViewportTextures each time I duplicate them. I need them to be procedurally instantiated but I don’t know how to set each mirror to its own viewport using scripts :frowning:

This is what I did so far:

nut it still didn’t change in-game:

19PHOBOSS98 | 2020-01-14 06:50