Error
  • XML Parsing Error at 1:66. Error 23: EntityRef: expecting ';'
Expression Preset 4 : Include Expression samples
smaller text tool iconmedium text tool iconlarger text tool icon

These are the sample compositions and expressions from Tutorial #19.

I've included an additional example not covered in the tutorial that shows how to use a more flexible comp name, such as "sc100_JoeAverage". You'll see a simple variable that allows you to define the number of characters in the scene number. In this case, "sc100" has 5, so scLength is set to 5.

Mac Version:

#include '/Expressions/source.txt'
try{eval(thisComp.name)}catch(err){"not found"}

Windows:

#include 'file:///c:\Expressions/source.txt'
try{eval(thisComp.name)}catch(err){"not found"} 

Download both as Compositions