This section describes how to set, unset, use, and echo environment variables. The procedures are different on Windows as compared to Linux.
You can define environment variables on Windows using the set command as described in the sections that follow.
When you modify the setenv.bat file, the modifications are used each time you launch the interactive Softimage application, the command-line Softimage application, or the mental ray renderer.
Use the User Tools utility or a text editor to modify the setenv.bat file in the Application\bin subfolder of the directory where Softimage is installed.
For information about the syntax of the set command, see the sections that follow.
For information about specific variables, see Table of Environment Variables.
When you modify environment variables in a command prompt window, the modifications affect that specific window and any programs launched from it.
For example, to open a command prompt with the default Softimage environment already set, choose Programs Autodesk Softimage 2014 Command Prompt from the Windows Start menu.
Modify the environment variables as needed.
For information about the syntax of the set command, see the sections that follow.
For information about specific variables, see Table of Environment Variables.
Start an application in the modified environment.
For example to launch the interactive Softimage program from the command prompt, enter the following:
xsiTo create or modify an environment variable, use the set command. For example, to set the variable SI_LINKTAB_LOCATION to the value C:\LinktabFolder:
set SI_LINKTAB_LOCATION=C:\LinktabFolderDo not enclose the value in quotes, unless you want the quotes to be part of the value. Note that variable names are not case-sensitive on Windows.
To unset an environment variable, set it to nothing. For example:
set MYTEMPVAR=To use the current value of an environment variable in a command, enclose the variable name in percentage signs (%). For example, to add the directory C:\MyDir to the beginning of the search path:
set PATH=C:\MyDir;%PATH%To echo the current value of an environment variable to the command prompt window, you can use the echo command and enclose the variable name in percentage signs. For example, to see the current search path:
echo %PATH%Alternatively, you can use the set command without using the equal sign (=). For example:
set PATHInstead of specifying the full variable name, you can use the set command with the initial characters of the name to echo all variables that begin with that string.
To see the current values of all environment variables, enter the following:
setYou can define environment variables on Linux using setenv and unsetenv as described in the sections that follow.
You can change environment variables permanently in the .xsi_2013 file. Make sure that this file is sourced before launching the interactive Softimage application, the command-line Softimage application, or the mental ray renderer. The .xsi_2013 file is located where the Softimage program files are installed (by default /usr/Softimage/Softimage_2014), but if there is a version in your home directory it will take precedence.
Use the User Tools utility or a text editor to modify the .xsi_2013 file.
For information about the syntax of the setenv and unsetenv commands, see the sections that follow.
For information about specific variables, see Table of Environment Variables.
When you modify environment variables in an xterm or shell window, the modifications affect that specific window and any programs launched from it.
If desired, set the default Softimage environment. For example,
source /usr/Softimage/Softimage_2014/.xsi_2013Modify the environment variables as needed.
For information about the syntax of the setenv and unsetenv commands, see the sections that follow.
For information about specific variables, see Table of Environment Variables.
Start an application in the modified environment. For example to launch the interactive Softimage program, enter the following:
xsiTo create or modify an environment variable, use the setenv command. For example, to set the variable SI_LOCATION to the value usr/Softimage/SOFT3D_4.0:
setenv SI_LOCATION "/usr/Softimage/SOFT3D_4.0"Character strings must be enclosed in double quotes. Remember that variable names are case-sensitive on Linux.
To unset an environment variable, use the unsetenv command. For example:
unsetenv MYTEMPVARTo use the current value of an environment variable in a command, prefix the variable name with a dollar sign ($). For example, to add the directory ~/MyDir to the beginning of the search path:
setenv PATH "~/MyDir:$PATH"To echo the current value of an environment variable to the shell or xterm window, use the echo command and prefix the variable name with a dollar sign ($). For example, to see the current search path:
echo $PATHTo echo all environment variables, use:
envThe .xsi_2013 environment script uses the C shell syntax. The C shell is a common command interpreter on Linux.
If you are using a different command interpreter as your default, you can switch to a C shell temporarily to run the environment script. You can also change your default command interpreter permanently.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License