Forum Replies Created

Page 2 of 4
  • Malcolm Ricci

    October 16, 2022 at 8:42 pm in reply to: Audio Expression

    >Once the pre-comped voice over track ends…

    How will the expression know this has happened?


    Maybe something related to this?

    layerDuration = outPoint – inPoint; but pointing to the voice over track if possible?…

    Also, couldn’t the background expression just monitor the checkbox instead of the voice over audio level? It’s much easier to detect changes in keyframes than value levels.


    Yes definitely, if it is easier for it to do..

    So I’m thinking the best answer would be some kind of amalgamation of the following two expressions?

    fadeTime = 30;

    audio.audioLevelsMin = -40;

    audio.audioLevelsMax = 0;

    layerDuration = outPoint – inPoint;

    singleFrame = thisComp.frameDuration;

    animateIn = linear(time, inPoint, (inPoint + framesToTime(fadeTime)), audio.audioLevelsMin, audio.audioLevelsMax);

    animateOut = linear(time, (outPoint – framesToTime(fadeTime+1)), (outPoint-singleFrame), audio.audioLevelsMax, audio.audioLevelsMin);

    if(time < (layerDuration/2+inPoint)){

    [animateIn,animateIn];

    }else{

    [animateOut,animateOut];

    }

    AND

    if(comp(“Slide 1 Image or Video”).layer(“Scene 1: Video Audio – On/Off [Type: Dropdown, Options:{On| Off}, Linkto: Video, Required: No]”).effect(“On”)(“Checkbox”)==1){

    [-90,-90];

    } else {

    [-12,-12];

    }

    Not sure if this would make sense..

  • Malcolm Ricci

    October 16, 2022 at 7:54 pm in reply to: Audio Expression

    Hey Dan,

    So I’ve set up a template where there is a pre-comped audio track, which is a placeholder for a voice over, which the client could upload externally.

    This is in turn rigged to an on/off checkbox, which if turned on then the audio level of this pre-comped audio layer is set to -12, but if not then it is set to -50.

    There is also a background audio track throughout the template that is set to -12 itself.

    I’d like to find an expression that basically tells the background audio track, if the client turns on the checkbox (which turns the audio level of the voice over track to -12), then the background audio track has to fade down from -12 to -18, so that the pre-comped voice over track could be heard.

    Once the pre-comped voice over track ends then the background music fades back up.

    Hope that this explains it a little better..

  • Thank you for this Filip, it works!

    Apologies for the double post earlier and much appreciated 🙂

  • Hey Filip,

    I’ve been dabbling with this again recently and I was wondering, apart from the auto re-scaling of a .png with this method, could something similar also be applied to the position and anchor point of a layer to always ensure that the ‘content’ of the .png layer is automatically centred?

    For example, if I have a .png that’s been re-sized to fit in the comp, but the actual image of the .png is just off centre, the above expression would work in a similar manner to auto align and fit within the boundaries of the comp.

    Would this be possible?

    Thanks!

  • Hey Filip,

    I’ve been dabbling with this again recently and I was wondering, apart from the auto re-scaling of a .png with this method, could something similar also be applied to the position and anchor point of a layer to always ensure that the ‘content’ of the .png layer is automatically centred?

    For example, if I have a .png that’s been re-sized to fit in the comp, but the actual image in the .png is just off centre, the above expression would work in a similar manner to auto align and fit within the boundaries of the comp.

    Would this be possible?

    Thanks!

  • Hey Filip,

    I’ve recently come across this and it works great, so thanks first of all.

    I wanted to ask whether there is anything that I could do to avoid it taking so long to render…

    I’m relatively new to expressions, but from what I’ve understood is it taking so long due to it having to go through every layer on every frame?

    Thanks

  • Malcolm Ricci

    September 11, 2022 at 7:18 pm in reply to: Text Command to Layer Size Expression

    thank you Dan, it works! much appreciated 🙂

  • Malcolm Ricci

    September 6, 2022 at 4:52 pm in reply to: Bolding specific words from dynamically sourced text
  • Malcolm Ricci

    September 6, 2022 at 2:07 pm in reply to: Bolding specific words from dynamically sourced text

    Hey all,

    I’ve come across a similar problem and was wondering whether you could explain the whole stroke width with expressions solution in a bit more detail please.

    Thanks.

  • Thanks a lot for the expression work and for the project sample, Filip, you’ve saved me countless hours of research and trying to figure this out.

    Also thanks once again Tomas for the input and valuable tips.

    It’s going to be a long road ahead getting comfortable with this level of expressions, but we’ll get there ☺

    Malcolm

Page 2 of 4

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