Skip to content

Instantly share code, notes, and snippets.

@DrHaze
DrHaze / removeMayaRequire.py
Last active January 10, 2023 02:18
Remove useless requires on a bunch of Maya scenes
# coding: utf8
"""
This script searches Maya scenes in a folder then parses every scene and tries to remove unwanted "requires"
ONLY WORKS ON PYTHON 3.5+
Tested on windows only
This script uses the cgLogging module avaiable here: https://github.com/asisudai/cg-logging
"""