Cake Decorating Machine

Input: grey carrier and green gear.is connected to the two inputs to perform such motion.
An orange pastry bag attached to violet crank pipes orange line on a cake (not shown). The line consitsts of a cycloid and a circle.
This mechanism was made on request of an YouTuber from India.