Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions expression to get the actual preview resolution, roughen edges issues

  • expression to get the actual preview resolution, roughen edges issues

  • Arne Münch

    June 11, 2021 at 2:32 pm

    Is there an expression to get the actual preview resolution? The effect “roughen edges” depends from the preview resolution and so final renders can look completely different.
    (I dont know any other effect with that behaviour)
    With such an expression you could feed the scale slider of that effect to achieve at least similar results.

  • Tomas Bumbulevičius

    June 14, 2021 at 1:53 pm

    Hey Arne – unlikely to be possible. As Preview Resolution is project panel item, it can be access from scripting only.

    Do you render different resolution outputs? Does it mean that half/quarter of best quality would look completely different?

  • Arne Münch

    June 14, 2021 at 4:44 pm

    Hi Tomas
    Yes indeed. Different render resolutions look different.
    I had a 4k project sending HD files to the customer as a preview, they look even different from my half HD preview working space, but the difference was not too much.
    For the final render in 4K it really looked bad in my eyes.
    Kind of silly. The turbulent distort effect for example does not have that behavior.

  • Filip Vandueren

    June 16, 2021 at 6:37 am

    I thought I could do a clever trick like doing sampleImage on a 1×1 white pixel, which gets grayer and grayer or more transparant as the resolution drops, but unexpectedly, the numbers sampleImage() yields always gives the correct result of what it looks like at full res 🤔🤷‍♂️

  • Arne Münch

    June 16, 2021 at 11:27 am

    Hi Filip
    Thanks for the nice approach. Good to know that other people struggle with the same issue:)

    For me it really degrades the use of that effect a bit and I will try to use turbulent distort instead when possible.

    But when you need to use it a lot in a project here is what you can do:
    Create in the “MasterComp” of the project an Null named “Control” withe a slider named “render res”.
    Every roughen edges effect becomes the following expression on the scale property of the effect (just copying the whole effect once create to other layers or create a simple preset):

    value * (1/(Math.pow(2, comp("MasterComp").layer("Control").effect("render res")(1))))

    Then when working and rendering in full, set the full res slider to 0, when working and rendering in half, set it to 1, when working and rendering in quarter set it to 2 and so on.
    This way you can easily change all roughen edges effects by a correct multiplier with just one click, to match roughly the desired look.

Viewing 1 - 5 of 5 posts

Log in to reply.

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