View Single Post
Old 2010-06-10, 07:00   Link #1063
yotsu
Junior Member
 
Join Date: Jun 2010
Hi there, need some help on Shinjipierre's Script. Since AE CS5 installed, the script doesn't seem to work properly. I have an error on line 223 :

Quote:
var nom_fichier = fileGetDialog("select the modified SSA file","*"); //in order to choose the SSA file
if(nom_fichier != null) { //if the file exists
nom_fichier.open("r","TEXT","????"); //I open the file (read mode)
while(!(nom_fichier.eof)) { //While the file isn't finished...
var ligne = nom_fichier.readln(); //I read a line

if(ligne != "") { //If there's actually something in the line I read...
if(ligne.substring(0,6) == "Dialog") { //If it's a dialog line
Apparently the function fileGetDialog is not recognize.

Someone can give me a hand ?

Thx in advance

EDIT: Removed previously deprecated fileGetDialog, filePutDialog, and folderGetDialog functions. Use File.openDialog, File.saveDialog, and Folder.selectDialog instead. The latter work in older versions of After Effects, too.

Just need to replace fileGetDialog

Last edited by yotsu; 2010-06-10 at 07:34.
yotsu is offline   Reply With Quote