
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have made a scene set with Maya's time unit configured to 60 FPS.
I also have a simple plugin, with these two statements in the `initializePlugin` function:
```
MGlobal::displayInfo(MGlobal::optionVarStringValue(MString("workingUnitTime")));
MGlobal::displayInfo(MGlobal::optionVarStringValue(MString("workingUnitAngular")));
```
I start Maya and open the scene (as describe above, it has the time unit set to 60FPS), and I see the following output in the script editor:
```
// film //
// deg //
```
So, the Maya API incorrectly reports `film` for the time unit (which is 24FPS).
If I then open the settings panel, press save, and then reload the plugin via the plugin manager, I see the following output:
```
// Result: 1 //
// Saving preferences to : /Users/richard-roberts/Library/Preferences/Autodesk/maya/2018/prefs/userPrefs.mel //
// Saving window positions to : /Users/richard roberts/Library/Preferences/Autodesk/maya/2018/prefs/windowPrefs.mel //
// Saving runtime commands to : /Users/richard-roberts/Library/Preferences/Autodesk/maya/2018/prefs/userRunTimeCommands.mel //
// Saving hotkeys to : /Users/richard-roberts/Library/Preferences/Autodesk/maya/2018/prefs/hotkeys/userHotkeys_Maya_Default_Duplicate.mel //
// Saving named commands to : /Users/richard-roberts/Library/Preferences/Autodesk/maya/2018/prefs/userNamedCommands.mel //
// Saving plug-in preferences to: /Users/richard-roberts/Library/Preferences/Autodesk/maya/2018/prefs/pluginPrefs.mel //
// Preferences saved. See Script Editor for details. //
//
// ntscf //
// deg //
```
And now, after opening and saving the preferences (in which I made no changes), Maya correctly reports `ntscf` for the time unit (which is 60FPS).
What does this happen? Is there an initialization step for Maya's API that I have missed?
Solved! Go to Solution.