Skip to main content
Inspiring
November 24, 2023
Answered

Extendscript. Add Deform > Puppet pins keyframes/values

  • November 24, 2023
  • 2 replies
  • 342 views

I need to add 4 puppet pins to image using extendscript and change it's positions using keyframes

var puppetEffect = selectedLayer.Effects.addProperty("ADBE FreePin3");
var ARAPGroup = puppetEffect.property("ADBE FreePin3 ARAP Group");
var meshGroup = ARAPGroup.property("ADBE FreePin3 Mesh Group");
var meshAtom = meshGroup.addProperty("ADBE FreePin3 Mesh Atom");
var posPins = meshAtom.property("ADBE FreePin3 PosPins");
var pinAtom = posPins.addProperty("ADBE FreePin3 PosPin Atom");
pinAtom.property("Position").setValuesAtTimes([0,5],[[100,100],[200,200]])

But after adding them they are grayed out:

What i'm missing?

Correct answer Dan Ebberts

As far as I know, there isn't a way to successfully add puppet pins via scripting. I'd love to be proven wrong about this though.

2 replies

Participant
March 6, 2025

I met the same problem of adding a puppet pin in After Effects by script.

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
November 24, 2023

As far as I know, there isn't a way to successfully add puppet pins via scripting. I'd love to be proven wrong about this though.