Preferences.Import

Description

Imports a set of preferences in Softimage. All values are saved in the user file. The file can contains preferences from any categories. The file must be in a .xsipref file format that can be created by exporting preferences.

C# Syntax

Preferences.Import( String in_bstrFile );

Scripting Syntax

Preferences.Import( Filename );

Parameters

Parameter Type Description
Filename String The location of the file containing the preferences to be imported.

Examples

Python Example

from win32com.client import constants as cns
app = Application
# Export the current scripting preferences
path = XSIUtils.BuildPath( app.InstallationPath(cns.siFactoryPath), "myprefs.xsipref" )
app.Preferences.Export(path, "scripting")
# Restore the default values
app.Preferences.RestoreDefault("scripting")
# Now import back the scripting preferences
app.Preferences.Import(path)

See Also

Preferences.Export Preferences.Categories Preferences.GetPreferenceValue Preferences.SetPreferenceValue Preferences.RestoreDefault Preferences.SaveChanges