Running Vegas Pro 11 and using C# for scripting. I have already built some useful scripts. Currently, I am interested to set the output directory (where rendered files go) to the same location as the project directory (where the current .veg file exists), maybe have this autorun as startup. This would overcome the accidental rendering into some other (ie- last used) project folder.
So I have written a script that reads the project directory, finds its parent and creates (if not yet existing) a folder named 'encoding'. I save this to the clipboard and can use it to manually change the output directory, but the last part is cumbersome.
Is there a list of project properties or attributes which can be set in a script? I can see that there is a UI for changing project properties, but it does not have properties for the output directory. I can also see that there are internal properties accessible from the Options, Shift-Preferences menu and these include settings such as 'Render Path' which are (as I can see) set to the current output directory.
But how does one access these properties programatically? I tried the obvious, eg- 'vegasApp.Project.RenderPath', but this fails (ie- ''Sony.Vegas.Project' does not contain a definition for 'RenderPath'). Does anyone have experience with scripting such properties?
So I have written a script that reads the project directory, finds its parent and creates (if not yet existing) a folder named 'encoding'. I save this to the clipboard and can use it to manually change the output directory, but the last part is cumbersome.
Is there a list of project properties or attributes which can be set in a script? I can see that there is a UI for changing project properties, but it does not have properties for the output directory. I can also see that there are internal properties accessible from the Options, Shift-Preferences menu and these include settings such as 'Render Path' which are (as I can see) set to the current output directory.
But how does one access these properties programatically? I tried the obvious, eg- 'vegasApp.Project.RenderPath', but this fails (ie- ''Sony.Vegas.Project' does not contain a definition for 'RenderPath'). Does anyone have experience with scripting such properties?