Skip to content

Instantly share code, notes, and snippets.

@FhyTan
FhyTan / MayaInstancerExample.py
Created August 22, 2022 07:01
Simple maya instancer example
import maya.cmds as cmds
pCone = cmds.polyCone()[0]
pCube = cmds.polyCube()[0]
pTorus = cmds.polyTorus()[0]
cmds.hide(all=True)
positionArray = [[0, 0, 0], [2, 0, 0], [5, 0, 0]]
rotationArray = [[45, 0, 0], [0, 45, 0], [0, 0, 45]]
scaleArray = [[2, 1, 1], [1, 2, 1], [1, 1, 2]]
@FhyTan
FhyTan / dictConfig
Last active March 24, 2024 05:51
Python Logging dictConfig Example
import logging
import logging.config
class MyFilter(logging.Filter):
def __init__(self, filter_msg):
super(MyFilter, self).__init__()
self.filter_msg = filter_msg