It would seem that the connection between the option variable,
'workingUnitTime', and the actual time unit used, set by
currentUnit(t='pal'), is rather loose. There exists a mel function,
mel.syncPreferencesOptVars('syncCurrentToOpt'), which will update the
unit settings to match the option var (or vice-versa with
mel.syncPreferencesOptVars('syncOptToCurrent') ), but it doesn't do
everything that changing it from the preferences GUI will (such as
updating the time slider ranges). The stuff that the gui does can be
found in the prefsSyncSettings mel proc, in
$MAYA_LOCATION/scripts/startup/createPrefWndUI.mel. (You can find
that out, by the way, by switching on the History>>Echo All Commands
option from the script editor window, than changing the setting from
the gui.)
Also - note that currentTime has an 'updateAnimation' flag, which
will change keys so that they stay at the same time (but a different
frame number)... I think it's on by default.
- Paul
--
http://groups.google.com/group/python_inside_maya