Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
eject81
Topic Author
Posts: 2
Joined: Mon Nov 05, 2007 1:03 pm

Script to mix slider (numbers) data with letters

Tue Nov 13, 2007 4:52 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: Sat Jun 05, 2004 7:59 am
Location: London, UK

Wed Nov 14, 2007 1:05 am

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
Topic Author
Posts: 2
Joined: Mon Nov 05, 2007 1:03 pm

tks, dude

Wed Nov 14, 2007 1:40 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.

Who is online

Users browsing this forum: No registered users and 1 guest