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 mset | |
# Smarter "findMaterial": doesn't print a message in the console | |
# or throw an error when the object to find doesn't exist. | |
def getMaterial(name, createIfNotFound=False): | |
found = None | |
objs = mset.getAllMaterials() | |
for obj in objs: | |
if obj.name == name: | |
found = obj |
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
// Ref to :https://forums.autodesk.com/t5/fbx-forum/pbr-materials/td-p/7418493 | |
FbxSurfaceMaterial* material = fbxNode.GetMaterial(materialIndex); | |
const FbxProperty topProp = material->FindProperty("3dsMax", false); | |
if (topProp.IsValid()) | |
{ | |
const FbxProperty props = topProp.Find("Parameters", false); | |
if (props.IsValid()) | |
{ |
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=utf-8 | |
# Script by MineClever, help to process high mesh normal on low mesh~ | |
import maya.api.OpenMaya as api | |
import maya.cmds as cmds | |
class MSingleton(type): | |
"""metaclass for set singleton class""" | |
__debug = True |
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=utf-8 _*_ | |
# a simple script help to make a ui add custom tangent setting for selected mesh / mesh group | |
import mset | |
class MTangentType (object): | |
tangent_type = ("Custom", | |
"Marmoset", | |
"Mikk", |
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
@echo off | |
:: 以GBK环境运行 | |
chcp 963 | |
cls | |
:: 入口 | |
:Main | |
::添加本地变量 | |
set inputDrive=M | |
set driverSymbol=%inputDrive% |