Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Jack Parks on June 6, 2011 at 1:02 pm

    Hello

    I had an expression using a control to switch on/off a wiggle.
    I have tried to modify it to only wiggle x and y, but can’t figure out the problem with it.
    I ran it through script editor and still couldn’t get it.
    Please can somebody spot the problem?

    Thanks

    control = effect("Checkbox Control")("Checkbox") ;

    if (control == 1){
    w = wiggle(10,50);
    [w[0],[w[1],value[2]]]
    }else{
    value;
    }

    Dan Ebberts replied 14 years, 11 months ago 2 Members · 2 Replies
  • 2 Replies
  • Jack Parks

    June 6, 2011 at 1:10 pm

    think I figured it out….

    control = effect("Checkbox Control")("Checkbox") ;

    if (control == 1){
    [wiggle(25,25)[0], wiggle(25,25)[1], wiggle(0,0)[2]];
    }else{
    value;
    }

  • Dan Ebberts

    June 6, 2011 at 3:15 pm

    You were pretty close with the first version as well:


    control = effect("Checkbox Control")("Checkbox") ;

    if (control == 1){
    w = wiggle(10,50);
    [w[0],w[1],value[2]]
    }else{
    value;
    }

    Dan

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