Spotify playback control inside Maya 2025 — with auto-pause on playback.
Before starting, make sure you have all of the following. Every item is required.
AXE Spotify is a single .py file. No installer, no dependencies to manage manually.
Save the file to your Maya scripts directory.
Windows: Documents\maya\scripts
Mac: ~/Library/Preferences/Autodesk/maya/scripts
Open the Script Editor (Windows → General Editors → Script Editor) and create a new Python tab.
Paste and run the following in the Python tab:
AXE Spotify talks to Spotify through their official Web API. You need to register a free developer app to get credentials. This takes about 3 minutes and you only do it once.
Log in at developer.spotify.com/dashboard with your Spotify account.
Click Create App. Name it anything — AXE Spotify works. Add a short description. Check Web API under "Which API/SDKs are you planning to use?"
In the Redirect URIs field, paste the URL below and click Add. It must match exactly.
From your app's settings page, copy the Client ID and Client Secret. You'll paste these into AXE Spotify's setup screen.
~/axe_spotify_config.json after the first setup. You won't need to enter them again.
The first time you launch, AXE Spotify will walk you through a 3-step setup. After that it connects silently on every launch.
Click Install Spotipy. The tool runs pip automatically using Maya's Python environment (mayapy.exe). Takes a few seconds. If it's already installed it skips straight to the next step.
Paste your Client ID and Client Secret from the Spotify developer dashboard. Both fields turn green when valid. Click Next.
Click Open Browser. A Spotify login tab opens. Approve access. Your browser will then show "This site can't be reached" — that's normal and means it worked. AXE Spotify catches the response automatically and connects. You're done.
~/axe_spotify_config.json and ~/.axe_spotify_token.
mayapy.exe (not maya.exe) via a background QThread so Maya stays responsive. If you're still stuck, you can install manually: open a command prompt and run mayapy -m pip install spotipy — mayapy.exe lives in C:\Program Files\Autodesk\Maya2025\bin\.
http://127.0.0.1:8888/callback. No trailing slash, no https, no localhost — it must be that exact string.
127.0.0.1:8888 which is a local address on your machine. AXE Spotify spins up a tiny local server to catch that redirect automatically. The "can't be reached" message just means the browser tried to load the page after the server already captured the token and shut down. If the tool hasn't connected after a few seconds, use the manual fallback field that appears.
adjustSize() call that bubbled up through the widget tree and confused Maya's workspace layout. That's been removed. Re-download and re-run import axe_spotify; axe_spotify.launch().
~/axe_spotify_config.json — your saved credentials~/.axe_spotify_token — your cached OAuth token