I wrote a script that changes the default in and out tangents in the preferences and all of a sudden I am getting this error even though it worked before
// Error: file: /Applications/Autodesk/maya2016/Maya.app/Contents/scripts/startup/createPrefWndUI.mel line 1089: Object 'inTangentType' not found.
Here is the code for reference to see if by chance something is wrong.
preferencesWnd "timeslider";
switchPrefTabs 0;
prefAnimTangentsChanged 1;
keyTangent -global -itt spline;
prefAnimTangentsChanged 0;
keyTangent -global -ott spline;
setFocus prefsSaveBtn; savePrefsChanges;
deleteUI PreferencesWindow;
I downloaded 2017 to see if it was a bug with 2016 sp6 but I get the same error no matter what.
Solved! Go to Solution.
Solved by mspeer. Go to Solution.
Hi @Anonymous and welcome to the community!
This may be an issue with your prefs folder so you should try deleting your settings/preferences to see if that changes anything.
Let me know if anything changes!
Please hit the Accept as Solution button if my post fully solves your issue, or reply with additional details if the problem persists.
Kudos are greatly appreciated. Everyone likes a thumbs up!
All the best,
Sean Heasley
Technical Support Specialist
Autodesk Here to Help | My Screencasts | Autodesk Virtual Agent | How To Reset User Settings | Installation and Licensing Forum | Maya Certified Hardware |
I'm not a MEL expert but you said this script worked before, in what version of Maya did this originally work?
All the best,
Sean Heasley
Technical Support Specialist
Autodesk Here to Help | My Screencasts | Autodesk Virtual Agent | How To Reset User Settings | Installation and Licensing Forum | Maya Certified Hardware |
Maya 2016 extension 1 sp6. The thing I don't understand is I am copying the exact commands Maya is doing from the script editor and getting the error.
Hi!
Why so complex, this is all you need and it works in Maya 2017 update 4:
keyTangent -global -itt "spline" -ott "spline";
It was only complex cause I was pulling exactly what Maya had in the script editor but just tested it out in 2016 sp6 and it works perfectly! Thank you so much!
Can't find what you're looking for? Ask the community or share your knowledge.