hello everyone !
how u doing ?
Is it possible to hide or show a layer from a specific layout or from the current layout?
You can get specific layers easily from a layout:
// get a layer from the current layout
let myLayer = runtime.layout.getLayer(1) // 1 is the index of my layer, you can also just put the name of the layer as parameter.
after getting the layer you can set visibility:
myLayer.isVisible = false;// Will hide the layer
runtime.getLayout("myLayout");
to get a specific layout.