Uploaded October 2025 | Updated September 2026, 1 week ago
In this lesson you will learn how to use the loopOut & loopIn Expressions to create repeating animations.
Exercise Files:
https://dub.sh/aeugfiles
1. Introduction to Loop Expressions
1. Purpose of Loop Expressions
1. Enabling repeated animations without manual keyframe copying.
2. Creating a Basic Animation with Keyframes
1. Setting Up Keyframes
1. Example: Moving a logo across the screen.
2. Techniques: Using Command/Ctrl + arrow keys for precise frame movement.
2. Copying and Pasting Keyframes
1. Creating a seamless loop by copying the first keyframe to the end.
3. Adding Loop Expressions
1. Introduction to LoopOut Expression
1. Steps to add: Option/Alt + click the stopwatch.
2. Basic syntax: loopOut("cycle");
2. Adjusting Animation Speed
1. Spacing out keyframes proportionally using Option/Alt + drag.
4. Variations of LoopOut Expression
1. LoopOut with Cycle
1. Default behavior: No need to specify "cycle".
2. LoopOut with Ping Pong
1. Syntax: loopOut("pingpong");
2. Example: Creating a back-and-forth motion.
3. LoopOut with Offset
1. Syntax: loopOut("offset");
2. Example: Creating a stair-step animation.
4. LoopOut with Continue
1. Syntax: loopOut("continue");
2. Example: Continuously extending the last segment of the animation.
5. Using LoopIn Expression
1. Introduction to LoopIn Expression
1. Difference from LoopOut: Animation starts looping before the first keyframe.
2. Syntax and Example
1. Syntax: loopIn("cycle");
2. Practical use cases: Controlling animation stop points.
6. Advanced Loop Techniques
1. Combining Keyframes and Expressions
1. Adding expressions to properties with existing keyframes.
2. Using the Show Post Expression Graph
1. Visualizing the motion path created by expressions.
7. Practical Tips and Best Practices
1. Efficient Workflow with Loop Expressions
1. Using loop expressions to simplify and streamline repetitive animations.
2. Troubleshooting and Optimization
1. Managing keyframe spacing and easing for smoother animations.
In this lesson you will learn how to use the loopOut & loopIn Expressions to create repeating animations.
Exercise Files:
https://dub.sh/aeugfiles
1. Introduction to Loop Expressions
1. Purpose of Loop Expressions
1. Enabling repeated animations without manual keyframe copying.
2. Creating a Basic Animation with Keyframes
1. Setting Up Keyframes
1. Example: Moving a logo across the screen.
2. Techniques: Using Command/Ctrl + arrow keys for precise frame movement.
2. Copying and Pasting Keyframes
1. Creating a seamless loop by copying the first keyframe to the end.
3. Adding Loop Expressions
1. Introduction to LoopOut Expression
1. Steps to add: Option/Alt + click the stopwatch.
2. Basic syntax: loopOut("cycle");
2. Adjusting Animation Speed
1. Spacing out keyframes proportionally using Option/Alt + drag.
4. Variations of LoopOut Expression
1. LoopOut with Cycle
1. Default behavior: No need to specify "cycle".
2. LoopOut with Ping Pong
1. Syntax: loopOut("pingpong");
2. Example: Creating a back-and-forth motion.
3. LoopOut with Offset
1. Syntax: loopOut("offset");
2. Example: Creating a stair-step animation.
4. LoopOut with Continue
1. Syntax: loopOut("continue");
2. Example: Continuously extending the last segment of the animation.
5. Using LoopIn Expression
1. Introduction to LoopIn Expression
1. Difference from LoopOut: Animation starts looping before the first keyframe.
2. Syntax and Example
1. Syntax: loopIn("cycle");
2. Practical use cases: Controlling animation stop points.
6. Advanced Loop Techniques
1. Combining Keyframes and Expressions
1. Adding expressions to properties with existing keyframes.
2. Using the Show Post Expression Graph
1. Visualizing the motion path created by expressions.
7. Practical Tips and Best Practices
1. Efficient Workflow with Loop Expressions
1. Using loop expressions to simplify and streamline repetitive animations.
2. Troubleshooting and Optimization
1. Managing keyframe spacing and easing for smoother animations.
![Part 2: How to set up Project Folder and build the Script UI Panel with Wiggle Button
🎓 Part 2 of 4:
How to set up Project Folder and build the Script UI Panel with Wiggle Button
Welcome to Part 2 of this 4-part mini-course where youll learn how to set up a Project Folder for this project and future vibe coding projects, how to open the folder in Cursor AI and then add a text prompt to build the basic ScriptUI Panel with a button that says Wiggle.
🧱 What You’ll Learn:
- How to organize your project folder for vibe coding
- How to open folders in Cursor AI and explore the interface
- How to prompt Cursor using the Context + Expectations method
- How to generate a .jsx ScriptUI panel with a dummy button
- How to install and test your custom panel inside After Effects
📺 WATCH THE FULL MINI-COURSE
▶️ Intro: https://youtu.be/7kcY82mnsA4
▶️ Part 1: https://youtu.be/YC7_7KwTZQE
▶️ Part 2 (You’re here)
▶️ Part 3:
▶️ Part 4:
🧭 ABOUT THIS SERIES
This is a mini-course designed for content creators and educators who want to use AI tools like Cursor AI to vibe code, build digital products, and create smart tools using Adobe After Effects.
🛠 Tools & Effects Used
* App: Adobe After Effects CC 2025
* Download Cursor: https://cursor.com
⌨️Keyboard Shortcuts:
* Open Chat Panel: Cmd/Ctrl + I
* Accept All Changes: Cmd/Ctrl + Enter
* Create Duplicate File: Cmd/Ctrl + D
📂 Project Folder Setup:
* Home...code...code builds....ae_script_panel_wiggle
* Inside: `dev`, `docs`, `project files`
💾 ScriptUI Install Path (Mac):
* Applications ...Adobe After Effects [version] ...Scripts,,,ScriptUI Panels
📦 RESOURCES & DOWNLOADS
* 🎓 After Effects User Guide Course: https://aeuserguide.com
* 🎨 Terrapin Textures: https://terrapintextures.com
* 🔧 My Gear & AI Tools: https://mikemurphy.co/resources
* 🖥 Adobe After Effects: https://mikemurphy.co/adobe (affiliate)
🗂️ How To Set Up Vibe Coding Project Folder (Mac Instructions)
* Create folder in Home Folder called ‘code’
* Create a folder inside ‘code’ called ‘code builds’
* Create a folder inside ‘code builds’ called ‘ae_script_panel_wiggle’
* Create 3 folders inside project folder (dev, docs, project files)
* Place Cursor code files (.jsx) in ‘dev’ folder
* Place ReadMe files and prompts in ‘docs’
* Place After Effects .aep project in ‘project files’
🛠️ How To Build ScriptUI Panel in Cursor AI:
* Copy ChatGPT (or similar) prompt to clipboard
* Open Cursor
* Open Project Folder
* Press Cmd/Ctrl + i to jump cursor to Chat Panel
* Paste Prompt in text field
* Press Return/Enter
* Accept File generated by Cursor
* Move .jsx file into ‘dev’ folder
🛠️ How To Add Code (.jsx) to After Effects
* Open Project Folder
* Open ‘dev’ folder
* Copy .jsx file (Cmd/Ctrl + D)
* Move .jsx file outside of ‘dev’ and give it identical file name as original created by Cursor
* Open Finder
* Click on Applications
* Click on Adobe After Effects [latest version]
* Click on ‘Scripts’
* Click on ‘ScriptsUI Panel’ and drag to Sidebar for shortcut
* Drag duplicated .jsx file in ScriptsUI Panel
* Open After Effects
* Go to Window Menu
* Select ‘myaetools.jsx’ to open
* Test by docking
* Click ‘Wiggle’ and nothing should happen yet
⏱ TIMESTAMPS
00:00 Introduction To Part 2
00:12 Part 2 Overview
00:32 Project Folder Setup & Organization
01:40 My Vibe Code System
02:17 Mac Tip: Finder Sidebar Shortcut
02:32 Start Building in Cursor
02:54 Explorer Panel + Project Folder
03:14 Rich Text vs Plain Text
03:49 Shortcut to Chat (Cmd/Ctrl + i)
04:40 Context + Framework
05:14 Copy & Paste Prompt
05:43 Review Cursor Results
06:22 Green Highlighted Code
07:11 Accept & Reject Code
07:55 Code Lingo Cheatsheet
09:07 Duplicating New .jsx File
09:58 ScriptsUI Panel Folder (Applications)10:34 Open & Test in After Effects
11:06 Testing Wiggle Button
11:32 End of Part 2
11:43 Recap of Part 2
👍 Like this video? Subscribe to the channel + sign up for my newsletter *AI Unplugged* to learn how to use AI to build your creative business.
📬 STAY IN THE LOOP
→ Join the AI Unplugged Newsletter to follow my journey into AI, tools, and building a solo creator business. https://mikemurphy.co/aiunplugged
→ Subscribe for more tutorials like this: https://youtube.com/mikemurphyco
🧭 Mike Murphy Tutorials
Learn AI. Build digital products. Make a living as a content creator.
🌹 Powered by Project Rosebud Part 2: How to set up Project Folder and build the Script UI Panel with Wiggle Button](https://i.ytimg.com/vi/Kc7sygIlMdQ/mqdefault.jpg)









