  | | | Subject: Animation Editor Prefs | Subject: Animation Editor Prefs 2005-06-22 - By Steven Caron
Back I had made this for an animator and we found out it worked.. then we realized it actually didn't behave properly despite the prefs being changed. anyways you have to export your prefs once.. then import every time..
its jscript
first you export <code> //export fcurve_editor prefs //try UserPath try { Application.Preferences.Export ( InstallationPath(siUserPath) + "\\data\\preferences\\FcurvePreferences.xsiprefs", "fcurve_editor" ); } //if error then show filebrowser catch(e) { if( e = "object Error") { logmessage( "\nError saving to UserPath! \nPlease choose file destination!"); }
var pBrowser = XSIUIToolkit.FileBrowser ;
pBrowser.DialogTitle = "Export Preferences As..." //set title of FileBrowswer pBrowser.InitialDirectory = InstallationPath(siUserPath) + "\\data\\preferences\\" //set initial directory of FileBrowser pBrowser.FileBaseName = "FcurvePreferences.xsiprefs" //set default file name pBrowser.ShowSave(); } </code>
then import everytime you need them or that you see they changed <code> //get project name, used for preference filename
//import fcurve_editor prefs //try UserPath try { Application.Preferences.Import ( InstallationPath(siUserPath) + "\\data\\preferences\\FcurvePreferences.xsiprefs"); } //if error then show filebrowser catch(e) { if( e = "object Error") { logmessage( "\nError loading preferences! \nPlease choose file!"); }
var pBrowser = XSIUIToolkit.FileBrowser ;
pBrowser.DialogTitle = "Import Preferences..." //set title of FileBrowswer pBrowser.InitialDirectory = InstallationPath(siUserPath) + "\\data\\preferences\\" //set initial directory of FileBrowser pBrowser.FileBaseName = "FcurvePreferences.xsiprefs" //set default file name pBrowser.ShowOpen(); }
</code>
if it doesn't work.. i am sorry :(
Steven Caron Jr. TD Omation San Clemente, CA
-- -- Original Message -- -- From: "Stefan Andersson" <sanders3d@(protected)> To: <XSI@(protected)> Sent: Wednesday, June 22, 2005 8:09 AM Subject: Animation Editor Prefs
> I know this has been asked a thousand times before.... but is there a > script or something that can call up your prefs. That it keeps going > back to "snap to grid" or "snap to frame" is making me insane. > > regards > stefan > -- > http://www.sanders3d.com/ > > --- > Unsubscribe? Mail Majordomo@(protected) with the following text in body: > unsubscribe xsi >
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |