Adding a button to save preference changes


Softimage saves your preferences to %XSI_USERHOME%\Data\Preferences\default.xsipref when you exit Softimage.
If you want to save your current preferences, you can use the Preferences.SaveChanges() method.

Just drag this JScript to a toolbar to create a script button.

// JScript
Preferences.SaveChanges();

For example, you could create a button on the Custom tab of the main shelf (View > Optional Panels > Main Shelf):


You probably want to make the button a Script Command (external file), so you can assign a keyboard shortcut to it.

3 thoughts on “Adding a button to save preference changes

    • No, in this case the idea is to save the changed preferences to the actual preference file.

      You can export your preferences elsewhere
      – in the Preferences dialog box, right-click Preferences and click Export
      OR
      – write a script that uses Preferences.Export()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s