I have been creating and using a number of different scripts to help automate a lot of tasks to create a SoaSE compatible model. Previously I have been reluctant to share these due to the amount of work helping people setup and use because of all the different setups with install directories and project names. These issues are solved.
I found that converting models to mesh and moving the mesh and textures to the mod folder for testing very tedious for making small changes and testing. With this script I click a button and have the option to move the files directly to an existing mod folder or create a new mod folder (usually called Test) and it's all done.
Here is a breakdown of what the script does.
- Checks the current Softimage project for the ConvertXSI folder. Will be created if missing.
- Checks for the 4 ConvertXSI files. Will be individually downloaded from the SoaSE Weebly if missing.
- Resolves the user path to open the mod directories using...
strMods = XSIUtils.ResolvePath ("$USERPROFILE/AppData/Local/Ironclad Games/Sins of a Solar Empire/")
- Freezes all transforms using
ResetTransform , siCtr, siSRT, siXYZ
- Creates a new folder in the projects Models directory with SoaSE mod subfolders
(Mesh, Textures, GameInfo, etc)
- Converts the model to DotXSI using SoaSE compliant settings.
- Converts the DotXSI file to .MESH TXT file.
If a mod folder was chosen the script will copy the mesh and textures to the chosen mod folders.
Using this I can keep the SoaSE Dev running, make a quick change to a model and click ConvertXSI then see the changes immediately.
The way I have rewrote the script it will not matter where the Softimage project is located or what the project is called so it should be easily installed by anyone. Should also be compatible with both Softimage|XSI Mod Tool or Softimage 2010/2011. The later is not tested.
Running or creating scripts in Softimage is fairly easy.
Typically located at the bottom left will open the script editor [ALT+4]. This will open a new window with a top grey section which shows commands being run and other information echoed back. The bottom white section is the editor.
I have created a custom toolbar with this button and many more scripts as buttons that I am working on a complete SoaSE Project XSI add-on. Creating a custom toolbar is not hard and will help anyone who wishes to create their own.
convertxsi.vbs
I would be
for feedback