ScriptInterface:SetSelLayer(layer, multiSelect, allowDeselect)

Version added: before 9.5

Arguments:

Name Type Description Default Ver
layer MohoLayer New selected layer < 9.5
multiSelect bool If false, all previously selected layers will be deselected. false < 9.5
allowDeselect bool true < 9.5

Return value:

void none
You also have to call ScriptInterface:UpdateUI to update display of Layers window.
If the layer is in the closed group You can call ScriptInterface:ShowLayerInLayersPalette to open the group and show the layer. This action includes updating UI too.
<< Back to ScriptInterface