Editing Other Batch and Resource Files

The sishell.bat File (Windows Only)

The sishell.bat file is used to start up a command prompt window with Softimage environment variables already loaded so that you can run your Softimage Standalones.

Sample sishell.bat file

@echo off
title "SI Command Prompt"
cmd /K call C:\Softimage\Softimage_7.5\Application\bin\setenv.bat
echo on

The xsi.bat File

The xsi.bat file is used to start Softimage. The environment variables are sourced before the XSI executable file is launched.

To view all the options that you can add to the xsi.bat file, open a Softimage command prompt and type xsi -h.

Sample xsi.bat file

@echo off
call c:\Softimage\Softimage_7.5\Application\bin\Setenv.bat
start "" c:\Softimage\Softimage_7.5\Application\bin\XSI.exe %1 %2 %3 %4 %5 %6 %7 %8 %9

The DatabaseDir.rsrc File

The DatabaseDir.rsrc file lists the name and location of each SOFTIMAGE|3D database to which you have access and can import into Softimage. You can easily modify your SOFTIMAGE|3D database paths by editing this file using the User Tools application or a text editor.

 

You can have several users on one machine, each with their own DatabaseDir.rsrc file.

The SI_DBDIR environment variable points to the directory in which the DatabaseDir.rsrc file resides. This table shows their locations:

Platform

Location

Windows

c:\users\<username>

Linux

~ (which represents the home directory for each account)

When modifying the DatabaseDir.rsrc file, use the following syntax:

   DATABASE <name_of_database> 
   PATH <full_path_name_of_database> 

   Shader Library

   DATABASE <name_of_database> 
   PATH <full_path_name_of_database> 
   TYPE shaderlib

Multiple Users and the DatabaseDir.rsrc File

Autodesk Softimage can import SOFTIMAGE|3D information from the list of databases located in the DatabaseDir.rsrc file. You can have several users on one machine, each with their own DatabaseDir.rsrc file.

The SI_DBDIR environment variable points to C:\users\%username% (Windows) or to your home account (~ on Linux). To point to a different DatabaseDir.rsrc file, modify the path referenced in the SI_DBDIR environment variable.

Example DatabaseDir.rsrc File

Platform

File Contents

Windows

DATABASE playtime
PATH c:\Softimage\SOFT3D_4.0\3d\databases\playtime

Linux

DATABASE playtime
PATH /usr/Softimage/SOFT3D_4.0/3d/databases/playtime

The first valid database listed is your default SOFTIMAGE|3D database.

 

A shader library must not be defined in both the DatabaseSys.rsrc and DatabaseDir.rsrc files. If it is, this will cause problems accessing the shaders.

The DatabaseSys.rsrc File

The DatabaseSys.rsrc file contains the system database list. System databases are available to all Softimage users. If you install the XSI Samples database, the Softimage Setup program places the DatabaseSys.rsrc file in the resource directory (rsrc) by default. If you do not install any databases, DatabaseSys.rsrc is created, but is empty.

By editing this file, you can create a new database that is accessible system-wide by specifying the absolute path for the database.

For example, the Softimage Setup program adds the following statements to the DatabaseSys.rsrc file, indicating where the sample shader library is located. The following example assumes that Softimage is installed in the default installation path.

Platform

File Contents

Windows

DATABASE Shader_Lib
PATH C:\Softimage\Softimage_7.5\Application\phenolib\Shader_Lib
TYPE SHADERLIB

Linux

DATABASE Shader_Lib
PATH /usr/Softimage/Softimage_7.5/Application/phenolib/Shader_Lib
TYPE SHADERLIB


Autodesk Softimage v.7.5