In questo video scopriamo come utilizzare un’espressione “Dynamic Parenting” per l’animazione di personaggi 2D in After Effects, video tutorial realizzato by Colion Harvie.

Animazione di personaggi in After Effects semplice da realizzare

Lavorare sul set up personaggio in After Effects può essere difficile gestire più oggetti con un sacco di problemi e fastidi continui con i fotogrammi chiave. In questo video, Colion ci mostrerà come utilizzare un semplice controller di espressione per impostare Dynamic Parenting flessibile e bilanciato per i tuoi personaggi 2D.

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);


  • Apply this code to the position property of the layer you want to parent
  • You need to create Layer Controls on the layer to tell the script where to find the Target layers
  • Be sure to name your Layer Control effects as Target A, Target B, Target C, Target D
  • Include a Layer Control called Fade Control Layer
  • Add slider controls named Fade A, Fade B, Fade C, Fade D

 

Article Comments