Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

tweenMachine.mel won't run because of source statement?

tweenMachine.mel won't run because of source statement?

Anonymous
Not applicable
11,404 Views
5 Replies
Message 1 of 6

tweenMachine.mel won't run because of source statement?

Anonymous
Not applicable

Hey everyone, 

 

I hope you are all doing well. I have a question about running tweenMachine as downloaded from Github. I was able to put the .mel file in the script folder for Maya 2020, however it will not run due to a strange error. Let me show you a picture of what I am talking about: 

 

mb635_0-1621464703677.png

 

So, I put the .mel file in the general script folder for all my Maya versions but I also put the .mel file in the version specific folder in Maya 2020 and Maya 2022.

0 Likes
11,405 Views
5 Replies
Replies (5)
Message 2 of 6

BigRoy
Advocate
Advocate

You'd need to copy the xml_lib.mel file to your scripts folder too: https://github.com/boredstiff/tweenMachine/tree/master/mel

 

However even better is using the Python version. Because as the README states the Mel version is no longer supported.

 

 

0 Likes
Message 3 of 6

Anonymous
Not applicable

Okay, thank you I will test this out. Are their specific tutorials for the Python versions that you recommend? Thank you very much

0 Likes
Message 4 of 6

Anonymous
Not applicable

Also are you saying that MEL versions can't work at all? I tried running it again but it doesn't seem to work on Maya 2020

0 Likes
Message 5 of 6

BigRoy
Advocate
Advocate

So the MEL version does work in Maya 2020 - I quickly checked here.

I copied both these files https://github.com/boredstiff/tweenMachine/tree/master/mel to my scripts folder for Maya 2020. Restarted maya and ran the following code in MEL Script Editor to run it:

tweenMachine;

 

However, even though it does work I'd recommend using the more updated version, which is the Python version.

To use that copy over the script files in https://github.com/boredstiff/tweenMachine/tree/master/python to your scripts folder.

 

Then in Maya in Script Editor in a Python Tab you can import that python module and run the right command. According to the documentation in the code repository it's INCORRECTLY shown as this:

import tweenMachine
tweenMachine.start()

 This won't work because the Python file is called "tween_machine.py".

 

The right command to call is thus:

import tween_machine
tween_machine.start()

 

Note that this particular TweenMachine library has been abandoned and looking for new code maintainers. Some forks do have updates, e.g. to Python 3 compatibility to potentially work with Maya 2022+ but it's not in this particular github repository. For example: https://github.com/boredstiff/tweenMachine/pull/35

 

Anyway, hope that helps.

 

 

0 Likes
Message 6 of 6

Anonymous
Not applicable

I tried exactly the same steps from the first section, tween still doesn't run at all. My oriignal steps were the following: 

Maya 2020

1. rehash; Highlight+Enter

2.Oddly enough the word disappears

3. Go to Open Source and run tweenMachine.mel file. 

4. Nothing happens

 

Same thing occurs with Maya 2022

I used the same line of code and it just disappears after I try to run it. 

 

 

0 Likes