Slider value to text

The expression allows you to transfer the numbers from the Slider Control effect to a Source Text. Additionally, you can add words before and after the number, for example, put a “$” before the number, or “%” after.

temp=0+effect("Slider Control")("Slider");
wordL = " "; // The word before the number
wordR = " "; //  The word after the number
dig = 1; // Number of digits after the decimal point
""+ (wordL)+temp.toFixed(dig)+""+ (wordR)
Recommended Posts

Start typing and press Enter to search