Import (Preferences)
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.
Scripting Syntax
Preferences.Import( Filename )
C# Syntax
Preferences.Import( String in_bstrFile );Parameters
|
Parameter |
Type |
Description |
|
Filename |
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
|
|
|
Autodesk Softimage v7.5