CZ_Rootwave
Script to create natural wave motion with physical inertia for the skeletal chain.
Category:
Layers
Last Updated: Jan 17 2026, 07:20

1. Setting the Root Bone Name (Syntax)
You need to name the root bone — the first bone in the sequence — using the following syntax to trigger the script:
Basic (Perpetual Loop): RootWave(amp, speed)
Example: RootWave(0.4, 3) — This will be a perpetual loop.
Advanced (Specific Time): RootWave(amp, speed, startFrame, endFrame)
Example: RootWave(0.4, 3, 20, 150) — The wave will start at frame 20 and end at frame 150.
2. Explanation of Parameters
amp (Amplitude): The strength or weakness of the wave rotation (Example: 0.4).
speed (Speed): The speed or slowness of the wave rhythm (Example: 0.07).
startFrame: The number of frames at which the wave movement begins.
endFrame: The number of frames at which the movement ends
3. How to activate the script in Moho
After naming the bone correctly, follow these steps:
Open the Layer Settings panel of that Bone layer.
Select the General tab, check the Embedded script file box.
Find and select the path to the CZ_Rootwave.lua file to apply it.
4. Practical example
If you want the chain of bones to start gently waving from frame 20 and stop at frame 150, name the root bone:
RootWave(0.4, 0.07, 20, 150)