This file contains hidden or 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
| using System.Collections.Generic; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| namespace Editor | |
| { | |
| public class AssetAuditorWindow : EditorWindow | |
| { | |
| private Vector2 _scrollPos; |
This file contains hidden or 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 shutil | |
| import webbrowser | |
| from datetime import datetime | |
| # USE RAW STRINGS (r"") TO AVOID BACKSLASH ERRORS | |
| # TODO: Set this to not be local | |
| csv_folder = r"C:\Users\aobon_ktnb1ku\Documents\Unreal Projects\AutoTest\Saved\Profiling\CSV" | |
| profiling_root = r"C:\Users\aobon_ktnb1ku\Documents\Unreal Projects\AutoTest\Saved\Profiling" |
This file contains hidden or 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 | |
| import mathutils | |
| class VCH_OT_VertexColourByHeight(bpy.types.Operator): | |
| """Vertex colour based on world space Z position""" | |
| bl_idname = "paint.colour_by_height" | |
| bl_label = "Vertex colour by world height" | |
| bl_options = {'REGISTER', 'UNDO'} | |
| @classmethod |
This file contains hidden or 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
| from skimage.metrics import structural_similarity as ssim | |
| import cv2 | |
| import matplotlib.pyplot as plt | |
| imgGold = cv2.imread("C:/Users/aobon_ktnb1ku/Documents/SSIM Test/Screenshot_1.png", 0) | |
| imgTest = cv2.imread("C:/Users/aobon_ktnb1ku/Documents/SSIM Test/Screenshot_2.png", 0) | |
| ssimScore, diff = ssim(imgGold, imgTest, full=True) | |
| # diff here is image array |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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) |
NewerOlder