An easy way to make items oscillate is to use the Sine expression. Sine is probably something you forgot about from a math class long ago, but using this expression can help you create efficient movements. The Sine expression provides a smoother and more predictable motion then, say, the Wiggle expression.
The expression is written as:
Your input goes in the parenthesis, and the Sine of that number is the output. For math gurus, the input is thought of as a radian, or a way to measure angles. The output will always be a value between -1 and 1.
In this short video tutorial, we’ll oscillate position using an expression. We’ll create a variable for the frequency and amplitude of the movement. Also, we’ll explore using time as a value.
Enjoying this tutorial? Sign up now for the Creative COW Newsletter!
Sign up for the Creative COW newsletter and get weekly updates on industry news, forum highlights, inspirational tutorials, tips, burning questions, and more! Receive bulletins from the largest, longest-running community dedicated to supporting professionals working in film, video, and audio.
Enter your email address, a first and last name, and let us know what you’d like to see more of in the message!