Hi Rummy,
Following-up on the command-line stuff, I've started to implement the plugin (
ZeoScript). At the moment, the scripting plugin can only handle function calls with arguments that are basic data types (int, float, string, etc.) This means you can run basic scripts like:
- Code: Select all
project.SaveProjectFile "C:\my data\this is a test.proj"
... to save the map project. I still have to implement handling of more complex data types like maps and file formats, but that should be fairly quick work. Anyway, once that's settled you'll be able to do stuff like:
- Code: Select all
// resize the heightfield to 512x512.
calc.map.Resize <m:HF> 513 513
// PS: line comments are supported using //
or:
- Code: Select all
// export the heightfield as a PNG
file.SaveMapFile <m:HF> "C:\tempdir\tempmap.png" 0 false true
or maybe even:
- Code: Select all
file.SaveMapFile <m:HF> <z:file.SaveAsDlg "png" "PNG images (*.png)|*.png|"> 0 false true
// this example calls the function 'file.SaveAsDlg' to open a file-save
// dialog, to get the filename to save the png.
// It doesn't work yet, but when it does...!
The list of available functions to be called (e.g. 'file.SaveMapFile') is already viewable in the 'atFuncBrowser' plugin (installed by default), which you can open using the 'Extensions->atFuncBrowser->Browse functions' menu option. Of particular interest may be the functions under 'calc->HF', which includes the lion's share of L3DT's heightfield effects. Once I've got those '<m:...>' and '<z:...>' things working, you'll be able to run them all. I was going to add menu options for all of those functions, but now I think I'll scupper that idea since they'll be accessible via ZeoScript.
Anyway, as I said above, it's not quite ready yet. If I have the time, I'll get this going tonight, but otherwise it will have to wait until next week.
Cheers,
Aaron.