-- ************************************************** -- Provide Moho with the name of this script object -- ************************************************** ScriptName = "AM_TurnOnLayer" -- ************************************************** -- General information about this script -- ************************************************** AM_TurnOnLayer = {} function AM_TurnOnLayer:Name() return 'Layer ON/OFF' end function AM_TurnOnLayer:Version() return '1.0' end function AM_TurnOnLayer:UILabel() return 'Layer ON/OFF' end function AM_TurnOnLayer:Creator() return 'Aleksei Maletin' end function AM_TurnOnLayer:Description() return '' end -- ************************************************** -- Is Relevant / Is Enabled -- ************************************************** function AM_TurnOnLayer:IsRelevant(moho) return true end function AM_TurnOnLayer:IsEnabled(moho) return true end -- ************************************************** -- The guts of this script -- ************************************************** function AM_TurnOnLayer:Run(moho) moho.document:SetDirty() moho.document:PrepUndo(nil) -- Your code here: local layer = moho.layer layer:SetVisible(not layer:IsVisible()) end
Turn ON/OFF selected layer
Listed
Author: Danfield
View Script
Script type: Button/Menu
Uploaded: May 25 2023, 04:28
Script Version: 1.0
allows you to enable/disable the selected layer with a hotkey
This script allows you to enable/disable the selected layer via the hotkey
This script, and all other scripts on this site are distributed as free software under the GNU General Public License 3.0 or later.
Downloads count: 590
Turn ON/OFF selected layer
Listed
Author: Danfield
View Script
Script type: Button/Menu
Uploaded: May 25 2023, 04:28
Script Version: 1.0
allows you to enable/disable the selected layer with a hotkey
This script allows you to enable/disable the selected layer via the hotkey
This script, and all other scripts on this site are distributed as free software under the GNU General Public License 3.0 or later.
Downloads count: 590