Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Need to generate random numbers like in an iP address

  • Need to generate random numbers like in an iP address

    Posted by Insaf Nias on February 19, 2020 at 7:12 am

    Hi Guys,

    I am literally tearing my head off ☹

    I need to create an effect of a screen filled with ip addresses which keeps on changing randomly

    Example – 192. 125.01.02

    I have no idea on how to get the 4 punctuation.

    Appreciate the help

    Thank you,
    Insaf Nias

    Insaf Nias replied 6 years, 3 months ago 3 Members · 4 Replies
  • 4 Replies
  • Eric Santiago

    February 19, 2020 at 4:11 pm

    I know there is a script for that but I’ve had to do it using multiple comps to create that sequence.

  • Insaf Nias

    February 19, 2020 at 7:05 pm

    Hi Eric,

    But how were you able to move the position of the numbers when the it changes from 2 digits to 3, because the position of the punctuation changes as per the number of digits.

    There are scripts that work like a charm, but it generates only one punctuation (ex. 192.52)

    I am so damn lost ☹ been struggling for days with this thing!

    Regards
    Insaf Nias

  • Greg Gesch

    February 20, 2020 at 1:04 am

    Hi Insaf. I don’t know what I’m talking about but:
    “There are scripts that work like a charm, but it generates only one punctuation (ex. 192.52)”
    Is it possible to put two of the numbers side by side ie. 192.52, then a full stop and then add another iteration on the same line?

  • Insaf Nias

    February 20, 2020 at 6:56 am

    Hi Greg,

    The issue with that method is that the position of the punctuation changes according to the number.

    I used the following script; but it give me only one punctuation point, i need 3 in total (Ex – 192.168.25.01)

    frames = 10; // frames to hold each random number
    seed = Math.floor((time – inPoint)/framesToTime(frames));
    seedRandom(seed,true);

    random(300).toFixed(2)

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