Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Source text alignment | Element3D

  • Source text alignment | Element3D

    Posted by Chris Zinner on April 30, 2016 at 1:45 pm

    Hi,

    working like crazy for an upcoming event i’ve run into another issue.
    I’m using a very simple slider control script to make a number count upwards from one value to another.

    Math.round(effect(“Slider Control”)(“Slider”))

    I want to extrude that number in Element3D which works fine.
    But as the numbers change the extruded typo jumps around even though i’m using a monospace font and the animated source text looks fine.

    I’ve come across this thread:
    https://www.videocopilot.net/forum/viewtopic.php?f=42&t=104640&start=0&hilit=#p331082

    The solution seems to be to create a bounding box by adding ‘ and , caracters and some spaces before and after the source text.

    “´ “+min + “:” + padZero(sec) +” ,”

    Can anybody show me how to edit the expression so that i can actually add those characters to the output?
    Thank’s!

    Math.round(effect("Slider Control")("Slider"))

    Chris Zinner replied 10 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    April 30, 2016 at 2:38 pm

    Like this maybe:


    n = Math.round(effect("Slider Control")("Slider"))
    "´ " + n + " ,"

    Dan

  • Chris Zinner

    May 12, 2016 at 3:59 pm

    It worked!
    Thank you very much and sorry for the late reply!

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