Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Subject: Cameras
Subject: scaleDown command
Subject: black out solved
Subject: Aircraft Tutorial
Subject: Mathematical XYZ ?
Subject: Re: Its done This vs That
Subject: Re: Its done first week
recommendations for screen video captures?
Subject: 3DExplorer "Oddity "
Subject: Re: New Director
Subject: ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
Subject: RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Subject: Re: Texturing
Big Break Contest Videos
Subject: New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Subject: Plasma?
Looking for Inspiration
Subject: Weird EMail Q
Subject: Re: It 's done first week ?
Subject: Cherry not cranberry
Subject: Re: New game
Camera Animation Problem
Subject: Particle plugins?
 
Subject: Animation Editor Prefs

Subject: Animation Editor Prefs

2005-06-22       - By Steven Caron

 Back
Reply:     1     2     3     4     5     6     7  

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