FORUMS: list search recent posts

Script for linking Dummies to Facetrack-Data

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Benjamin Leng
Script for linking Dummies to Facetrack-Data
on May 2, 2016 at 3:24:46 pm

Hey there,

I made a little .jsx-Script for automatically linking dummies to footage that was tracked with the AE-Facetracker. Just select the tracked footage and run the Code in a .jsx-file. It will create a dummy for every facetrack-feature.

I used it to animate a kind of facescanning effect with animated solids and plexus.

Have fun with it.

Benjamin Leng
Hick Pix

// FaceTrackDummy
// Script by Benjamin Leng, Hick Pix GmbH & Co KG
// You can use this script freely however you please. I would appreciate if you could keep this creator information.
// For questions, inquiries or thank you notes: benjamin.leng@hick-pix.de
// Have fun

{
app.beginUndoGroup("Facenull");


var curItem = app.project.activeItem;

//CurrentLayer
var curLayer = curItem.layer(1);

var Feature = ["Left Eyebrow Inner", "Left Eyebrow Middle", "Left Eyebrow Outer", "Left Eye Inner", "Left Pupil",
"Left Eye Outer", "Right Eyebrow Inner", "Right Eyebrow Middle", "Right Eyebrow Outer", "Right Eye Inner", "Right Pupil",
"Right Eye Outer", "Nose Bridge", "Nose Tip", "Left Nostril", "Right Nostril", "Mouth Left", "Mouth Top", "Mouth Right",
"Mouth Bottom", "Left Cheek Top", "Left Cheek Middle", "Right Cheek Top", "Right Cheek Middle", "Chin"];

for (FeatureCount = 0; FeatureCount &lt; Feature.length; FeatureCount++)
{
var trackPoint = Feature[FeatureCount];
var expString = "thisComp.layer(\"" + curLayer.name + "\").effect(\"Face Track Points\")(\"" + trackPoint + "\")";

var faceNull = curItem.layers.addNull();
faceNull.name = trackPoint;
faceNull.threeDLayer = true;
faceNull.property("position").expression = expString;
}

app.endUndoGroup();
}


Return to posts index

Kalle Kannisto
Re: Script for linking Dummies to Facetrack-Data
on May 3, 2016 at 6:26:31 pm

Great, thanks! Sound like a fun thing to play with.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]