Site icon 3DArt

Dynamic Parenting Expression for Character Set Up in After Effects

In this video learn how to use a Dynamic Parenting Expression for character animation in After Effects wrote by Colion Harvie.

Character animation in After Effects simple way

Working on the character set up in After Effects it could be tough to manage multiple objects things with a lot of fuss and bother and wrestling with key-frames. In this video Colion will show you how to use a simple expression controller to set up smooth, weight blended Dynamic Parenting for your characters.

Dynamic Parenting Expression for After Effects



Download the After Effects Example Scene:

https://drive.google.com/drive/folders/


Dynamic Parenting Script:

var fadeCtrlLyr = effect(“Fade Control Layer”)(1);
var total = 0, totalWeight = 0, remWeight = 0;
function addTarget(name){ var lyr = effect(“Target “+name)(1), pos = lyr.toComp(lyr.anchorPoint); var fade = fadeCtrlLyr.effect(“Fade “+name)(1);
if (hasParent) pos = parent.fromComp(pos); total+=fade*pos; totalWeight+=fade; remWeight = 1-totalWeight; } addTarget(“A”);
addTarget(“B”);
addTarget(“C”);
addTarget(“D”);
addTarget(“E”);
totalWeight==0 ? value : linear(remWeight,total/totalWeight,value);



 

Article Comments
Exit mobile version