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.
Preferences.Import( String in_bstrFile ); |
Preferences.Import( Filename ); |
| Parameter | Type | Description |
|---|---|---|
| Filename | String | The location of the file containing the preferences to be imported. |
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)
|
Preferences.Export Preferences.Categories Preferences.GetPreferenceValue Preferences.SetPreferenceValue Preferences.RestoreDefault Preferences.SaveChanges