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, json | |
from urllib.request import urlopen | |
def decapitalize(s, upper_rest = False): | |
return ''.join([s[:1].lower(), (s[1:].upper() if upper_rest else s[1:])]) | |
def cap(s): | |
return ' '.join(w[:1].upper() + w[1:] for w in s.split(' ')) | |
Changes = [] |
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 | |
for mat in bpy.data.materials: | |
if "temp" in mat.name: | |
print("The material will be removed: " + mat.name) | |
bpy.data.materials.remove(mat) |
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, thelightmapper, os | |
from os import listdir | |
from os.path import isfile, join | |
baked_image_array = [] | |
#1. UNCOMMENT THIS IF YOU WANT TO POINT TO IT MANUALLY | |
#bpy.context.scene.TLM_EngineProperties.tlm_lightmap_savedir = "C:/PATH/TO/DENOISER/BINARY" | |
dirpath = os.path.join(os.path.dirname(bpy.data.filepath), bpy.context.scene.TLM_EngineProperties.tlm_lightmap_savedir) |