Custom Motion Trail Rig | After Effects Tutorial

Опубликовано: 09 Октябрь 2024
на канале: The Video Shop
4,731
329

In this video I show how you can create your own custom motion trail rig.

=============================================================

EXPRESSIONS USED IN THIS TUTORIAL
Please note that unfortunately youtube doesn't allow angled brackets in their titles or descriptions, so you may get errors with some of these. Please check them against the relevant chapter to see if angled brackets have been replaced, or download the project file and lift them from there

I've replaced the instances of angled brackets with greater than and less than (remove the spaces either side) but let me know in the comments if you still have issues. It's highly likely that I've missed some.

For Time Remap value:

td = thisComp.layer(":: control ::").effect("time - difference")("Slider");
x = effect("x")("Slider");
ts = thisComp.layer(":: control ::").effect("time - start")("Slider");
ts+[td*x]

For Slider Control (rename “x”):

n = thisLayer.name.split(",");
n[1]

For Transform effect (Position property):

seedRandom(index,true);
xran = thisComp.layer(":: control ::").effect("position wiggle - X")("Slider")/2;
yran = thisComp.layer(":: control ::").effect("position wiggle - Y")("Slider")/2;
x = random(-xran,xran);
y = random(-yran,yran);
[960+x,540+y];

Layer Count:

layerNumber = 0;//start the counting of layers at 0;
layerStartWith = "footage";
for(i=1;i less than =thisComp.numLayers;i++){
if (thisComp.layer(i).name.slice(0,layerStartWith.length) == layerStartWith) layerNumber =layerNumber +1;
}
layerNumber

For Transform effect (Opacity property):

x = effect("x")("Slider");
y = thisComp.layer(":: control ::").effect("layers - start")("Slider");
if(x<=y) 100 else 0

X Position:

spread = thisComp.layer(":: control ::").effect("x spread")("Slider");
x = effect("x")("Slider")
value+[spread*x]

Z Position:

spread = thisComp.layer(":: control ::").effect("z spread")("Slider");
x = effect("x")("Slider")
value+[spread*x]

Z Rotation:

seedRandom(index,true);
r = thisComp.layer(":: control ::").effect("rotation wiggle")("Slider")/2;
zr = random(-r,r);
[zr];

Opacity (for layers - end):

x = effect("x")("Slider");
y = thisComp.layer(":: control ::").effect("layers - end")("Slider")+1;
if(x greater than =y) 0 else 100

Transform Effect Opacity (for layers - start):

x = effect("x")("Slider");
y = thisComp.layer(":: control ::").effect("layers - start")("Slider");
if(x greater than =y) 100 else 0

=============================================================

► Download the free project file: https://thevideoshop.gumroad.com/l/hn...


► Download other free project files from my gumroad: https://gumroad.com/thevideoshop

=============================================================

Photo by David Maier on Unsplash

Photo by Katie Rainbow 🏳️‍🌈 on Unsplash

Photo by Aleksandr Popov on Unsplash

Video by Pavel Danilyuk: https://www.pexels.com/video/man-jump...

Video by Tima Miroshnichenko: https://www.pexels.com/video/a-soccer...

=============================================================

The Video Shop Long Play:    / @thevideoshoplongplay  

=============================================================

Chapters:
00:00:00 - Intro
00:00:58 - Comp Settings
00:01:18 - Importing Clips / Interpret Footage
00:02:29 - thisLayer.name.split expression
00:03:21 - Adding a Control Null
00:03:39 - Time Controllers
00:03:55 - Time Remapping Expression
00:04:45 - Adding reference timecode
00:05:34 - Adjust Time Difference
00:05:59 - Match Timing to Comp Framerate
00:06:40 - X Position Expression
00:08:14 - Z Position Expression
00:09:25 - Layer Count expression
00:10:22 - Layers Start / End
00:12:44 - Procedural Ripped Paper Rig Preview
00:13:07 - Choosing the Right Footage
00:13:43 - Basketball Animation Walk Through
00:18:03 - Outro

=============================================================

► Subscribe for more tutorials like this:    / @thevideoshoplondon  

=============================================================

► If you have any questions just let me know in the comments.

► Find me: https://linktr.ee/TheVideoShop

#aftereffects
#aftereffectsworkflow
#adobeaftereffects
#kinetictype
#kinetictypography
#aftereffectsfaux3d
#animation
#learnaftereffects
#motiondesign
#learnmotiondesign
#ideasmotiondesign
#creativeprocess
#creativeprocessmograph