Specify output Folder dialog

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
Barend Onneweer
Posts: 5
Joined: August 31st, 2007, 3:20 am
Location: Netherlands
Contact:

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
MYX_2000
Posts: 12
Joined: February 6th, 2012, 2:01 pm

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 + "/";
Post Reply