Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MEL Script Problem

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Anonymous
1707 Views, 6 Replies

MEL Script Problem

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.

6 REPLIES 6
Message 2 of 7
sean.heasley
in reply to: Anonymous

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!

Message 3 of 7
Anonymous
in reply to: sean.heasley

Hi @sean.heasley,

 

Thanks for the quick reply, I have tried that and it did not fix the problem.

Message 4 of 7
sean.heasley
in reply to: Anonymous

I'm not a MEL expert but you said this script worked before, in what version of Maya did this originally work?

Message 5 of 7
Anonymous
in reply to: sean.heasley

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.

Message 6 of 7
mspeer
in reply to: Anonymous

Hi!

 

Why so complex, this is all you need and it works in Maya 2017 update 4:

 

keyTangent -global -itt "spline" -ott "spline";
Message 7 of 7
Anonymous
in reply to: mspeer

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.

Post to forums  

Autodesk Design & Make Report