Scissor Mechanism

Input: orange crank driven by grey motor.
Output: red slider moving along a zigzag runway.
This mechanism can be used for copying a curve.