Is there anything wrong with my code? It excutes but no materials replace.
import unreal def replace_material(original, replacement): original_asset = unreal.EditorAssetLibrary.load_asset(original) replacement_asset = unreal.EditorAssetLibrary.load_asset(replacement) unreal.EditorAssetLibrary.consolidate_assets(replacement_asset, [original_asset]) #replace_material(original_name, replacement_name) replace_material("Content/1619_Section_26_CENTRAL6633/Materials/TL1_Wall_Tile", "Content/Materials2/Ceramic_Enamel_Tiles_MAT")
I’ve tried so many variations of the path that I’ve given up. Is there a way to just wildcard this so TL1_Wall_Tile gets replaced with Ceramic_Enamel_Tiles_MAT?