Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions I’ve put together a preset using this code and it slows AE down to a crawl. What am I doing wrong?

  • I’ve put together a preset using this code and it slows AE down to a crawl. What am I doing wrong?

    Posted by Tim Harwell on March 15, 2019 at 6:15 pm

    I’ve put together an Animation Preset with expression controls based on this set of tutorials: https://vimeo.com/user73213403/videos

    I just took all of the properties that he tinkers with to finesse his animation and connected them to expression controls.

    I’m using it on Duik controllers in order to add “Idle” animation when the “enable” checkbox is on and be able to keyframe animate when it’s off. The problem is AE slows down to a crawl and it’s really unusable.

    I can load the rig and the first time I move a controller it works quickly and well. The next time I try to move a controller I have to select the controller in the layer stack and then click over to the composition panel and wait for the blue “activated” outline appear around that panel. Then I can drag the controller, but it only works after waiting for some kind of calculation to get done over the course of 5 or so seconds.

    What am I doing wrong? I’m willing to share the project if someone is able to help troubleshoot.

    Thanks!

    Tim

    /****Delay (Two-Value)****/

    //Vars\
    On = effect("Enable Delay Position")("Checkbox");
    delay = [effect("Delay X")("Slider")*-.01,effect("Delay Y")("Slider")*-.01];
    amp = [effect("Amplitude X")("Slider"),effect("Amplitude Y")("Slider")];
    offset = [effect("Offset X")("Slider")*-1,effect("Offset Y")("Slider")*-1];
    target = effect("Zero The Parent's Position!")("Layer").position;

    //Execution\
    if(On.value){

    temp = [amp[0]*(target.valueAtTime(time+delay[0])[0]-offset[0]), amp[1]*(target.valueAtTime(time+delay[1])[1]-offset[1])];
    value+temp;

    }else{
    transform.position;
    }

    Tim Harwell replied 7 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

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