Skip to content

Instantly share code, notes, and snippets.

@Liametc
Liametc / check_poly_normals.py
Last active August 12, 2024 01:47
Check polygon normals in maya using python api 2.0
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.
@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
"""