Page 1 of 1

Script to mix slider (numbers) data with letters

Posted: November 13th, 2007, 4:52 pm
by eject81
That's it, I'm looking for an string to mix numeric data (from an slider) with letters (messuarement), in this way:

thisComp.layer("Null 2").effect("Slider Control")("Slider") + mm

to get:

## mm

I'm getting error puting the above string, and I think is because I'm mixing numeric data with letters, is it possible for after effects, to recognize numeric data as letters and puting together with a + ?

tks to all.

Posted: November 14th, 2007, 1:05 am
by Paul Tuersley
Presumably you're applying this expression to the Source Text property of a text layer? Try this:

thisComp.layer("Null 2").effect("Slider Control")("Slider").value + "mm";

tks, dude

Posted: November 14th, 2007, 1:40 pm
by eject81
Paul Tuersley wrote:Presumably you're applying this expression to the Source Text property of a text layer? Try this:

thisComp.layer("Null 2").effect("Slider Control")("Slider").value + "mm";
It works completly, I put an string linked to a slider on the source text parameter on a text layer.

tks.