Activate a switch layer
-- Activate a switch layer for frame 0. local group = self.moho:LayerAsGroup(layer) local switchLayer = self.moho:LayerAsSwitch(layer) ...
Random number
-- Generate a random integer between 0 and numLayers-1 math.random(numLayers) - 1 #MohoRecipes
Process top level layers
-- access all top level layers function msRecipes:AccessTopLayers() for i = 0, self.moho.document:CountLayers()-1 do local layer =...
Drill into groups
-- drill into groups of the current layer -- to print all switch layers function msRecipes:DrillIntoGroups(layer) if layer:IsGroupType()...
Moho Recipes: What are they?
Moho is a powerful program that allows professional animators and hobbyists to create animations. One of the most powerful things about...
Rename Style
Rename the first style to "lulu". Shapes using the first style will local firstStyle = self.moho.document:StyleByID(0) if firstStyle ~=...