Activity › Forums › Adobe After Effects Expressions › Parenting puppet tool
-
Parenting puppet tool
Posted by Gordon Spurs on February 7, 2009 at 9:09 pmHi, I’m doing a piece of character animation and i need to parent an eyebrow to a pin from the puppet tool. I’ve seen some code on the web but can’t seem to get it to work. If anyone can explain how to do this simply I would be extremely grateful.
PS. I’ve tried to parent the position of the eye brow simply by dragging the expression pick whip to the pins position but it seems the co-ordinates are drawn from the layer and not the whole world.
Dan Ebberts replied 15 years, 3 months ago 7 Members · 15 Replies -
15 Replies
-
Dan Ebberts
February 7, 2009 at 9:21 pmSomething like this:
L = thisComp.layer(“face”);
L.toWorld(L.effect(“Puppet”).arap.mesh(“Mesh 1”).deform(“Puppet Pin 1”).position)Dan
-
Gordon Spurs
February 7, 2009 at 10:12 pmThats amazing Dan, works great. Could you help me with one more thing? Is there a way to move the pin without effecting the mesh as if you were pulling it out and repositioning it elsewhere?
-
Dan Ebberts
February 7, 2009 at 11:12 pmNot that I know of, but I’m no expert on how Puppet Pins work.
Dan
-
Matt Burnett
March 12, 2009 at 10:43 pmJust ran across this thread and wondered if anyone knew an expression to achieve the opposition. . . parenting a puppet pin to a null? Thanks.
-
Dan Ebberts
March 13, 2009 at 3:22 amLike this:
N = thisComp.layer(“Null 1”);
fromWorld(N.toWorld(N.anchorPoint));Dan
-
Courtney Riddles
December 5, 2009 at 6:51 pmI know this sounds minorly random, but I’m looking for this same sort of parenting technique, since I’m animating multiple compositions with balloons in them. Where do you enter that coding at? I did a quick google search on it, and I didn’t find much.
Thanks!
-
Courtney Riddles
December 5, 2009 at 9:45 pmWell I have never seen the coding part of after effects, at all. I didn’t realize there was a section where you could add coding (such as this for the parent tool for the puppets.) How do I access the general coding section?
-
Dan Ebberts
December 5, 2009 at 10:13 pmThe kind of code we were discussing in this thread are expressions, which you enter by alt/opt+clicking the stopwatch for the property that you want to control. A text-entry area opens in the timeline, and you enter (or paste in) the expression there. An expression can control/animate the property to which it is applied, but nothing else.
The two other types of coding for AE are scripting and plug-ins. Scripts can be developed in a text editor or the ExtendScript Toolkit. Plug-ins would be developed in the IDE appropriate to your platform.
Dan
Reply to this Discussion! Login or Sign Up