Forum Replies Created

Page 7 of 10
  • Steve Sierra

    April 28, 2017 at 5:24 pm in reply to: Struggling/resisting scale expression?

    Hi,

    You could add a varying wiggle effect to your scale property.
    There are a few tutorials out there to do that ????

    Cheers !

  • Steve Sierra

    April 28, 2017 at 5:16 pm in reply to: Creating 2D Steam

    Hi,

    you could try this :

    make a precomp with a few sets of particles flowing up and growing. one for left side, other for right side, others for little cirlces, etc)
    Use black animated shapes (circles, rounded rectangles) as particles.

    add the fast blur/alpha curves effect on the precomp.

    Under the precomp, make a white shape that represents the smoke without undulations and stencil it out with the precomp.

    Good luck 😉

  • I get very funny slides mixing x and y….

    here’s one I think works :

    Same setup, but unliked C from A and added A pos to my expressions.

    in X:
    var a = (thisComp.layer(“B”).transform.xPosition-thisComp.layer(“A”).transform.xPosition);
    var aY = (thisComp.layer(“B”).transform.yPosition-thisComp.layer(“A”).transform.yPosition);
    var s = effect(“Slider Control”)(“Slider”);
    var s2 = effect(“Slider Control 2”)(“Slider”);
    (a*s/100) + thisComp.layer(“A”).transform.xPosition – aY*s2/100

    in Y:
    var a = (thisComp.layer(“B”).transform.yPosition-thisComp.layer(“A”).transform.yPosition);
    var aX = (thisComp.layer(“B”).transform.xPosition-thisComp.layer(“A”).transform.xPosition);
    var s = effect(“Slider Control”)(“Slider”);
    var s2 = effect(“Slider Control 2”)(“Slider”);

    a*s/100 + thisComp.layer(“A”).transform.yPosition + aX*s2/100

    Any better ?

  • I just saw my last post doesn’t work… The offset needs to be rotated….

  • Hi again,

    With the same setup as my first post, you can do this :

    -add a second slider to C.
    – replace X expression :

    var a = (thisComp.layer(“B”).transform.xPosition-thisComp.layer(“A”).transform.xPosition);
    var s = effect(“Slider Control”)(“Slider”);
    var s2 = effect(“Slider Control 2”)(“Slider”);
    (a*s/100) + s2;

    – replace Y expression :

    var a = (thisComp.layer(“Null 2”).transform.yPosition-thisComp.layer(“Null 1”).transform.yPosition);
    var s = effect(“Slider Control”)(“Slider”);
    var s2 = effect(“Slider Control 2”)(“Slider”);
    (a*s/100) + s2;

    Does that help ?
    😉

  • Hi,

    Here’s a way to do it :

    – parent C to A.
    – seperate position dimensions for all three objects.
    – add a slider control to C.
    – in C’s X Position, put this expression :

    var a = (thisComp.layer(“B”).transform.xPosition-thisComp.layer(“A”).transform.xPosition);
    var s = effect(“Slider Control”)(“Slider”);
    a*s/100;

    -in C’s Y Position, put this one :

    var a = (thisComp.layer(“B”).transform.yPosition-thisComp.layer(“A”).transform.yPosition);
    var s = effect(“Slider Control”)(“Slider”);
    a*s/100

    Does that help ?
    Cheers !

  • I see,

    I was confused, thinking it might turn “a” to “1”, “b” to “2”, “c” to “3”, etc…

    Thanks for the lesson !
    😉

  • Steve Sierra

    April 28, 2017 at 5:15 am in reply to: Rotation + expression + script problem

    Hi again,

    So I had to work my way around the problem by creating another null and have Anull look at it.

    Is there really no way to keep rotations “Local” in this parent configuration while animating rot with expressions ?

    Cheers !
    😉

  • Hi Dan,

    Could you quickly explain what parseInt does ?
    I read it takes a string and turns it into an int ? How ? What does the base 10 do ?

    Thanks !
    😉

  • Hi Ed,

    This is where my if/else statement comes to work ???? I had forgotten the reason, but here it is :
    Keys start at 1, time starts at 0. So when the time remap hits 0, you have to tell it to go to one of your mouth shapes (8 is the rest mouth in my case). That’s why the error says it has 0 when it needs a property (that starts at 1 in this case).

    So the expression has to be :

    var a = timeToFrames(thisComp.layer(“1 – Mouth 1”).timeRemap.valueAtTime(time));

    if(a==0){
    thisComp.layer(“Mouths”).content(“Shape 1”).content(“Path 1”).path.key(8);
    }else{
    thisComp.layer(“Mouths”).content(“Shape 1”).content(“Path 1”).path.key(a);
    }

    Does that fix it for you ?

    Cheers !

Page 7 of 10

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