ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Getting 1 character of a string of numbers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Tommie Retera
Getting 1 character of a string of numbers
on Jul 4, 2019 at 7:31:20 am

I got this price from a .json, so now the slider is giving me 6, which is good. But i rather have something where i can put in the price, for example 570, and tell the second slider to get this price and show only the 7. Is this possible with splitting or something?

Thank you

eval("var data=" + footage("data.json").sourceText);

hoogte = (data.jpstand1);



//JSON:

"jpstand1": "6",
"jpstand2": "0",
"jpstand3": "0",
"jpstand4": "0",
"jpstand5": "0",
"jpstand6": "0",
"jpstand7": "0",
"jpstand8": "0",


Return to posts index

Tomas Bumbulevičius
Re: Getting 1 character of a string of numbers
on Jul 4, 2019 at 6:13:30 pm

Hey Tommie, could you clarify this part?

But i rather have something where i can put in the price, for example 570, and tell the second slider to get this price and show only the 7

1. Where you want to add the 'price'?
2. What '7' stands for in your scenario?

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]