msHelper = {} -- ************************************************** -- Deletes Keys on a mohoLayer from frame x to y -- ************************************************** function msHelper:DeleteLayerKeys(mohoLayer, startFrame, endFrame) for frame = startFrame, endFrame do mohoLayer:DeleteKeysAtFrame(false,frame) end end msHelper.debug = false function msHelper:Debug(string) if(self.debug) then print(string) end end function msHelper:PrepUndo(moho) moho.document:PrepUndo(moho.layer) moho.document:SetDirty() end
msHelper
Listed
Author: strider2000
View Script
Script type: Utility
Uploaded: Jan 29 2022, 08:29
Small set of utility routines that aid in script writing and debugging
This just has three little functions
- DeleteLayerKeys
- Debug - prints out a message if the debug flag is on
- Prep Undo
It also makes a debug flag, msHelper.debug, available
This is needed by my lip sync script.
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: 407
msHelper
Listed
Author: strider2000
View Script
Script type: Utility
Uploaded: Jan 29 2022, 08:29
Small set of utility routines that aid in script writing and debugging
This just has three little functions
- DeleteLayerKeys
- Debug - prints out a message if the debug flag is on
- Prep Undo
It also makes a debug flag, msHelper.debug, available
This is needed by my lip sync script.
- DeleteLayerKeys
- Debug - prints out a message if the debug flag is on
- Prep Undo
It also makes a debug flag, msHelper.debug, available
This is needed by my lip sync script.
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: 407