Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Script for linking Dummies to Facetrack-Data

  • Script for linking Dummies to Facetrack-Data

    Posted by Benjamin Leng on May 2, 2016 at 3:24 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: be***********@******ix.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 < 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();
    }

    Kalleheikki Kannisto replied 10 years ago 2 Members · 1 Reply
  • 1 Reply

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy