{ "packages": ["numpy", "Pillow"], "paths": [ "./utils/materials_import.py", "./utils/base_utils2.py", "./utils/keyvalues1.py", "./utils/cppkeyvalues.py", "./utils/cstr.py", "./utils/keyvalue_simple.py", "./utils/material_proxies.py", "./utils/PFM.py" ] }

import materials_import from pathlib import Path Path.local = property(fget=lambda self: self) materials_import.sh.output = Path import js import pyodide def refresh(pointerEventObj): js.document.getElementById("s2").value = materials_import.ImportVMTtoVMAT(pointerEventObj.currentTarget.value) js.document.getElementById("s1").addEventListener("input", pyodide.ffi.create_proxy(refresh)) pyscript.write('s1', '''"LightmappedGeneric" { "$baseTexture" "ads/ad01" "$selfillum" "1" "$selfillumtint" "[ .1 .1 .1 ]" "$surfaceprop" "glass" }''') js.document.getElementById("s2").value = materials_import.ImportVMTtoVMAT(js.document.getElementById("s1").value)