I am sure its obvious, but any hints? Are there functions to do this, is anything done automagically, do I have to simply grab the source file folder from somewhere, and use scripts to manually copy everything to the Projects folder?
The Wizard "asks" you for the file to generate in
function GetGeneratedFile(file_index)
function. As described you have to return the filename and content with the syntax:
The variable
index is incremented automatically on each call, so you can go trough an array of your files.
If you have templates you have to read them and return the content from this function
local path = Wizard.FindTemplateFile("YourTemplateFileName");
local buffer = IO.ReadFileContents(path);
You can modify the content of the file before you return it.
The function
Will search for the filename in the
/templates/wizard/
sub folder. So you should put your template files in a subfolder of these path. Ofc you have to add this subfolder to the name you provide to the FindTemplateFile function.
I hope this helps a bit...
@oBFusCATed
So is this a no or a go for the api changes to the script binding? Probably not before the next release?