Import you Mixamo or external animation into maya dont forget to double check the timeline duration and framerate to match the imported animation framerate Select the base hip joint execute the script ...
When using the 'Send to Maya' command, the extension assigns the name variable of the script the actual name of the file: e.g. my_test_script instead of __main__. This might actually have been ...