Script to mix slider (numbers) data with letters

Moderators: Disciple, zlovatt

Post Reply
eject81
Posts: 2
Joined: November 5th, 2007, 1:03 pm

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.
Paul Tuersley
Posts: 704
Joined: June 5th, 2004, 7:59 am
Location: London, UK

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";
eject81
Posts: 2
Joined: November 5th, 2007, 1:03 pm

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.
Post Reply