This object provides functions to access and manipulate environment variables. It is accessible via the Global::System variable.
String : getenv( String environmentVariable )
Parameter(s):
Return Value:
Example:
var sEnv = System.getenv( "DAZSTUDIO" ); print( sEnv ); //C:/Program Files/DAZ/Studio
void : setenv( String environmentVariable, String value )
Sets the value of an environment variable. If the environment variable does not exist, it is created. The environment is only changed within the context of the script process, for the duration of said process.
Parameter(s):
Example:
System.setenv( "DAZSTUDIO", App.getHomePath() ); var sEnv = System.getenv( "DAZSTUDIO" ); print( sEnv ); // C:/Program Files/DAZ/Studio
void : print( String expression )
Deprecated
Exists only to keep old code working. Do not use in new code. Use Global::print() instead.
void : println( String expression )
Deprecated
Exists only to keep old code working. Do not use in new code. Use Global::print() instead.