Page 1 of 1

Specify output Folder dialog

Posted: June 12th, 2012, 5:54 am
by Barend Onneweer
Hi all,

So I'm taking Lloyd's FXPHD scripting class and getting my feet wet in scripting. I'm trying to build a script that will create comps for all selected footage items, apply an animation preset and render to a specific location. Lloyd's course is an excellent start since a good chunk of what I need is covered.

But the first thing I'm now strugling with is that I want the user to set the output path for the new files. So I've put in a 'browse' button, but the file.Opendialog isn't what I need I think and I can't figure out what I do need instead of this:

Code: Select all

var myOutputPath = File.saveDialog("Select output path" );


Any pointers very much appreciated.

Barend

Re: Specify output Folder dialog

Posted: July 11th, 2012, 9:01 am
by MYX_2000
Yeah, there are a couple of places where he gets you going, then you have to fight and claw to get the other bits. You'll get there if you stick with it.

var myFile = Folder.selectDialog([ "Find My Path" ]);
myPath = myFile.path + "/";