-- ************************************************** -- Provide Moho with the name of this script object -- ************************************************** ScriptName = "AE_DeselectAll" -- ************************************************** -- General information about this script -- ************************************************** AE_DeselectAll = {} function AE_DeselectAll:Name() return 'Deselect All' end function AE_DeselectAll:Version() return '1.0' end function AE_DeselectAll:UILabel() return 'Deselect All' end function AE_DeselectAll:Creator() return 'Alexandra Evseeva' end function AE_DeselectAll:Description() return '' end function AE_DeselectAll:ColorizeIcon() return true end -- ************************************************** -- Is Relevant / Is Enabled -- ************************************************** function AE_DeselectAll:IsRelevant(moho) return true end function AE_DeselectAll:IsEnabled(moho) return true end -- ************************************************** -- The guts of this script -- ************************************************** function AE_DeselectAll:Run(moho) moho.document:SetDirty() moho.document:PrepUndo(nil) for i, layer in AE_Utilities:IterateAllLayers(moho) do if moho:LayerAsVector(layer) then local mesh = moho:LayerAsVector(layer):Mesh() for p = 0, mesh:CountPoints() - 1 do mesh:Point(p).fSelected = false end elseif moho:LayerAsBone(layer) then local skel = moho:LayerAsBone(layer):Skeleton() for b = 0, skel:CountBones() - 1 do skel:Bone(b).fSelected = false end end for j, i, channel, chInfo in AE_Utilities:IterateAllChannels(moho, layer) do for k = 0, channel:CountKeys() - 1 do channel:SetKeySelectedByID(k, false) end end end end
Deselect All
Listed
Author: A.Evseeva
View Script
Script type: Button/Menu
Uploaded: Aug 23 2022, 03:33
Deselect any keys, vertices and bones in every layer.
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: 167
Deselect All
Listed
Author: A.Evseeva
View Script
Script type: Button/Menu
Uploaded: Aug 23 2022, 03:33
Deselect any keys, vertices and bones in every layer.
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: 167