Forum Replies Created

Page 2 of 3
  • Thanks Dan, was up late trying to figure it out, to tired to notice it was right in front of my face, thanks again for your invaluable help!

  • Here is the expression which is on the the Time Remap property…

    threshold = 5.0;

    rotVal = thisComp.layer("51_divider_horiz").transform.rotation;

    if (rotVal
    0
    }else {
    above = false;
    frame = Math.round(time / thisComp.frameDuration);
    while (true){
    t = frame * thisComp.frameDuration;
    if (above){
    if (rotVal.valueAtTime(t)
    frame++;
    break;
    }
    }else if (rotVal.valueAtTime(t) >= threshold){
    above = true;
    }
    if (frame == 0){
    break;
    }
    frame--
    }
    if (! above){
    0;
    }else{
    time - frame * thisComp.frameDuration;
    }
    }

  • Hi Dan, I am trying to use this expression but I am getting the following error message…

    After Effects warning: Expected: )
    Expression disabled.

    Error occurred at line 6.
    Comp: ‘51_dad_isp_truck 02’
    Layer: 9 (‘spray’)
    Property: ‘Time Remap’

    Can you help?

    Thanks, Brad

  • Brad Pickford

    August 16, 2011 at 3:04 pm in reply to: parent layer to a mask vertice?

    Thanks Dan, I was dreading that would be the case. Thanks for your help

  • Brad Pickford

    August 16, 2011 at 12:21 pm in reply to: Mask points

    Hi Jim,Did you ever find a solution to this. I am trying to do something similar, by parenting a object to one of the vertices in a mask.
    Cheers,
    Brad

  • Brad Pickford

    August 12, 2011 at 12:37 am in reply to: Expression for Layer Ordering?

    Hi Pat,
    Not to sure if I understand you correctly but I am building a character rig and need to have an arm come from behind to in front of the body. I basically had had 2 arm layers on in front and one behind and used an if/else statement to control when a layer was visible. I assume you could do the same with z space as well. maybe something like this…

    Sorry if I have got it wrong,
    Brad

    if (thisComp.layer("Layer A").transform.position[3] >= 1000) 100 else 0

  • Brad Pickford

    August 12, 2011 at 12:29 am in reply to: Find and replace text within expressions?

    Hi Darby,
    Thanks for your reply. Your idea wasn’t quite the solution I needed in this case, it is a bit complicated for me to explain (or I am just not very good at it!) but you certainly gave me an idea that has seemed to work. This is what I came up with…

    To change all the references to the new rig location I created a text layer in the child comp “Comp A” and called it “CHANGE TEXT” I then typed out the name of the parent comp “Comp B” in the Source Text. I then added a variable that will get the value of the source text and use it in all of the expressions that reference the animation sliders in the new comp “Comp C”. It works! So now all I have to do is change the source text on one layer and all of the expressions change automatically… I have included the code below.

    Hope it makes sense,
    Thanks again Darby for your help!

    nm=comp("Comp A").layer("CHANGE NAME").text.sourceText.value;
    comp(nm).layer("Controls").effect("Hat Tilt")("Angle")

  • Brad Pickford

    August 10, 2011 at 2:12 am in reply to: Scale width generated by position x

    Perfect! Your a true genius Dan! Thank you for being so generous with you time and skills

  • Brad Pickford

    August 10, 2011 at 12:52 am in reply to: Scale width generated by position x

    Sorry about all the small replies Dan, this is my first post. I have applied your expression and it is working well except for the part where the “null” transitions onto the other side of the center line. So basically, when the null is on the far left hand side I need the scale to be 70%; at the center of the line I need it to be 100%; and on the far right of the center line I need it to be 120%. I am thinking I would need to use an if/else statement to achieve this. I am not too sure how to assemble all of these elements into the expression though?

    Thanks Dan

  • Brad Pickford

    August 10, 2011 at 12:39 am in reply to: Scale width generated by position x

    not too sure if image attached properly so I have an external link here…

    https://bradpickford.com/cc/example.jpg

Page 2 of 3

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