プリファレンスのセットを Softimage に読み込みます。値はすべてユーザファイルに保存されます。ファイルには、あらゆるカテゴリのプリファレンスを含めることができます。ファイル形式は .xsipref である必要があります(このファイル形式はプリファレンスを書き出すときに作成できます)。
Preferences.Import( String in_bstrFile ); |
Preferences.Import( Filename ); |
| パラメータ | タイプ | 説明 |
|---|---|---|
| Filename | String | 読み込むプリファレンスが含まれているファイルの場所。 |
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) |