Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE AFTER EFFECTS:HomeForumBasicsExpressionsTutorialsPodcastsAE TechniquesTrainingCreative Cloud DebateFAQ

Re: Stop loopOut smoothly?

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Share on Facebook
Respond to this post   •   Return to posts index   •   Read entire thread


Dan EbbertsRe: Stop loopOut smoothly?
by on May 4, 2012 at 5:35:56 pm

For the same property on different layers, you can select the property, the Edit > Copy Expression Only, select all the other layers, and paste.

For puppet pins, you could apply your expression to Puppet Pin 1, and then run a script like this to copy the expression to all the other pins:


{
var myProps = app.project.activeItem.selectedProperties;
var myProp = null;
for (var i = 0; i < myProps.length; i++){
if (myProps[i].name.indexOf('Puppet Pin 1') == 0){
myProp = myProps[i];
break;
}
}
if (myProp != null){
var myExpr = myProp.property("Position").expression;
if (myExpr != ""){
var myDeform = myProp.propertyGroup(1);
var numPins = myDeform.numProperties;
for (var i = 2; i <= numPins; i++){
myDeform.property("Puppet Pin " + i).property("Position").expression = myExpr;
}
}else{
alert("Puppet Pin 1 doesn't have expression.");
}
}else{
alert("Puppet Pin 1 not selected.");
}
}


Dan



Posts IndexRead Thread
Reply   Like  
+1
Share on Facebook


Current Message Thread:




LOGIN TO REPLY



FORUMSTUTORIALSMAGAZINESTOCKYARDVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2013 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]