Skip to content

Instantly share code, notes, and snippets.

@chittyren
chittyren / pyAKBetterIncrementAndSave.py
Last active June 25, 2023 04:16
This Maya plugin overrides the default Increment and Save menu command to accept only scenes with the v[0-9]+ version pattern.
"""
pyAKBetterIncrementAndSave.py
Alex Kline | dev[at]alexkline<dot>com
2020-02-19
http://blog.alexkline.com/2020/02/19/maya-better-increment-and-save/
This Maya plugin overrides the default Increment and Save menu command to accept only scenes with a valid v[0-9]+ version pattern.
In addition, it will also update the Version Label field in the render settings with a matching version.
See examples below, and blog post above for more information.
scenename_v001.ma -> scenename_v002.ma
@chittyren
chittyren / ak_setActiveProject_plugin.py
Last active November 12, 2019 01:02
This Maya plugin will set the active project before opening and saving scenes, just like Softimage. You can additionally call the command aksap() from maya cmds.
"""
ak_setActiveProject_plugin.py
Alex Kline | dev[at]alexkline<dot>com
2017-08-28
http://blog.alexkline.com/2017/08/28/maya-set-project/
This Maya plugin will set the active project before opening and saving scenes, just like Softimage. You can additionally call the command aksap() from maya cmds.
Plugin Template from Chad Vernon's site: http://www.chadvernon.com/blog/resources/maya-api-programming/your-first-plug-in/
"""