Maya 2024 stub files

Thanks for generating stub files, I’ve been testing them in PyCharm and they work great!

I do have one question.
Are there stub files for OpenMaya 2.0?

1 Like

Thanks for the kind words. Comments like yours make the effort worthwhile.
I haven’t done any for API 2.0, yet. I was waiting on the feedback for this first pass. I wanted to gauge how much it is used before putting in the added effort.

2 Likes

Maya2025 has been released. But Autodesk has not provided an offline download of the new docs. Really disappointed since I can’t generate new stub files until they do.

I got really surprising news from Autodesk today. I had put in a ticket request for offline documentation for Maya 2025. This is their reply:

I got feedback from the product team today. Unfortunately, they are unable to provide offline document for Maya 2025. Sorry for the bad news.

If you want stub files for Maya 2025, we need those offline docs. Please put in your own ticket request for the offline docs. Who knows, if enough people complain…

1 Like

That sounds … dumb. But I wouldn’t put it past Autodesk.
Could this just be “we can’t provide offline documentation right now”? :crossed_fingers: Hey, I can hope

And if worse comes to worst, you could just scrape the data from their website. I took a look at the website T&C, and I didn’t find any provisions for that. [EDIT: Nevermind, the help file links to a different T&C that does prohibit scraping] Though I did see that they put a header into the MEL docs that tells search engines not to index them. Which is probably why you still get Maya 2012 MEL docs when you search on Google.

I looked into scraping or copying the Autodesk docs website. Can’t do it. Lots of javascript code. My scripts rely on certain page structure and I’m not about to redo it all.

Good lord Autodesk - WHY?!

Hello!

Just a heads up as I randomly saw this discussion now, last year there was a noticeable improvement on this repo for maya stubs: GitHub - Muream/maya-stubs: Stubs for Autodesk Maya
Please don’t get this the wrong way, it’s great that people are trying to provide this, but what would be even better would be if there was one repo where everyone contributed rather than having many scattered projects. I believe on that one there’s open sourced code to also generate the stubs yourself with every new release, and they release them on pypi - although they’re released only for the latest version there, while it would be nice to package it up for multiple versions.

I mean, eventually it would be nice if Autodesk would provide that, but in the meantime…:grin:

1 Like

Yes, there’s several stub projects. I’ve had my code going since before 2008 - I was the first to generate these. It’s just a lot easier to get something that I find useable since mine are the most complete docs out of all the various projects.

1 Like

Hi cgjedi,

I really appreciate you putting in the work to create this.

I wonder if you have any plans to annotate optional arguments to the various functions. I’ll attach a screenshot of VS Code getting upset at me for my use of cmds.file
techart.online_maya-2024-stub-files_optional-args

@cgjedi
It looks like the offline docs for Maya 2025 are in Maya 2025 Update 1 win64 DevKit
\Autodesk_Maya_2025_1_Update_DEVKIT_Windows\devkitBase\devkit\other\docs.zip

Yes, starting from Maya 2024…

Thanks so much for this. I’ve been looking around for something to get autocomplete working since they stopped including pymel in the devkit and then the pymel download from Luma stopped including the completion folder…

A bit of a noob question though - how do I get PyCharm to recognise the pyi files you included? I added the \stubs\pycharm\maya module to the interpreter paths, but nothing is happening.

It seems your cmds stubs are missing the implicit -edit and -query flags.
Also, the flag arguments aren’t being recognized as keyword args. They should have a default argument of ... so typecheckers don’t think they’re required.