This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import maya.api.OpenMaya as om | |
import maya.cmds | |
import time | |
def is_normal_reversed(poly, mesh): | |
""" | |
Check the normal faces in or out of the model by doing a simple ray cast and | |
count results. Evens face out, odds face in. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
""" |