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
""" | |
Maya/QT UI template | |
Maya 2023 | |
""" | |
import maya.cmds as cmds | |
import maya.mel as mel | |
from maya import OpenMayaUI as omui | |
from shiboken2 import wrapInstance | |
from PySide2 import QtUiTools, QtCore, QtGui, QtWidgets |
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 json | |
import os | |
import csv | |
bucketURL = "https://storage.googleapis.com/glb-content-bucket/GLB/" | |
thumbnailLocalPath ="" | |
thumbnailLocalFolder = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/GLB_Test/Thumbnails" | |
GLBfolder = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/GLB_Test/" | |
csvData = [] | |
csvPath = "C:/Users/BondhanKimbalazani/Documents/parts.csv" |
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 bpy | |
from mathutils import Vector | |
import math | |
import os | |
folderPath = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/GLB_Test/BodyA" | |
#folderPath = 'C:/Users/BondhanKimbalazani/Documents/ModularCharacter/GLB_Test/BodyA/TorsoUpper' | |
thumbnailFolder = 'C:/Users/BondhanKimbalazani/Pictures/Thumbnails/' | |
def importGLBs(): |
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 subprocess | |
import os | |
import sys | |
# TODO: Not sure if this is default folder for everyone | |
userFolder = os.path.expanduser('~') | |
avatarToolsFolder = userFolder + '\\avatar-tools' | |
recursiveArg = '--r' | |
def getArguments(): |
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 unreal | |
# Change this with desired LOD level | |
targetLOD = 0 | |
# Change this with target folder for GLB output | |
targetFolder = "C:\\GLBExportTest\\" | |
targetFileFormat = ".glb" | |
selectedAssets = unreal.EditorUtilityLibrary.get_selected_assets() | |
numAssets = len(selectedAssets) |
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 csv | |
import random | |
import os | |
# Source CSV | |
CSVfilepath = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/ClothingTest-Sheet3.csv" | |
TextOutputFolder = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/MMLOutput" | |
BodyArray = [] | |
HairArray = [] | |
LegBaseArray = [] |
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 csv | |
import os | |
import glob | |
# Define the CSV file path | |
characterGLBFolder = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/GLB_Test" | |
targetFile = "C:/Users/BondhanKimbalazani/Documents/ModularCharacter/ClothingTest-Sheet3.csv" | |
BodyArray = [] | |
HairArray = [] | |
LegBaseArray = [] |
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 | |
blendshapeList = [] | |
# TODO: Change this, hard code for now | |
objectAffected = "eyebrow" | |
mainHead = None | |
blendshapeCopies = [] | |
meshDeformer = None | |
renamedBlendshapesArray = [] |
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 os | |
import maya.cmds as cmds | |
import pymel.core as pm | |
currentFilePath = cmds.file(query=True, location=True) | |
subFolderName = "Blendshapes" | |
subFolderPath = os.path.join(os.path.dirname(currentFilePath), subFolderName) | |
blendshapeNamespace = 'Blendshape' | |
mainHead = None | |
targetShapes = [] |
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 bpy | |
BUpperLimit = 0.7 | |
BLowerLimit = 0.3 | |
GLimit = 0.3 | |
vertexGroupName = "vcolorVG" | |
decimateRatio = 0.8 | |
def objectSelection(): | |
# TODO: Change this based on needs. Get all meshes in hierarchy |
NewerOlder