""" World / look track, part 1 (module of the import runner): MPC_Descent, M_DescentSurface, M_DescentGlass. The Kazah module (assets_10) builds them too through the same helpers, because it runs first and needs them as parents. """ import importlib.util import os def run(ctx): h = _load(ctx) mpc = h.ensure_mpc(ctx) h.ensure_surface_master(ctx, mpc) h.ensure_glass_master(ctx) ctx.log("look materials: MPC_Descent, M_DescentSurface, M_DescentGlass ready") def _load(ctx): spec = importlib.util.spec_from_file_location("descent_helpers_look", os.path.join(ctx.project_dir, "Tools", "ue", "_helpers_look.py")) module = importlib.util.module_from_spec(spec) spec.loader.exec_module(module) return module