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.cmds as cmds | |
import maya.OpenMaya as OpenMaya | |
import math | |
# Find if object located within camera frustum | |
# Usage: | |
# from obj_in_frust import in_frustum | |
# in_frustum('camera1', 'pCube1') | |
class Plane(object): |
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 pymel.core as pm | |
def importAllReferences(): | |
print("Importing all references...") | |
done = False | |
while (done == False and (len(pm.listReferences()) != 0)): | |
refs = pm.listReferences() | |
print("Importing " + str(len(refs)) + " references.") | |
for ref in refs: | |
if ref.isLoaded(): | |
done = False |