# What the script is doing : ## Path Cleaner ```python def clean_path_with_env(path): ``` - Forces forward slashes and replaces absolute path with $PRISM_JOB ## Texture folder finder ```python def updateVersion(kwargs): ``` It also detext task and root prim and display it in a label : ```python   node.parm("path").set(final_export_path)   node.parm("task").set(prismAssetTask)   node.parm("rootPrim").set(prismAsset) ``` ## Texture files finder ```python def find_all_textures(kwargs): ``` Here are all the texture already integrated to the script : ```python     texture_map = {         "DIFF":  ("diff_texture",      "Diffuse"),         "AO":    ("ao_texture",        "Ambient Occlusion"),         "CUR":   ("curv_texture",      "Curvature"),         "SPC":   ("spec_texture",      "Specular Weight"),         "SPCC":  ("specc_texture",     "Specular Color"),         "SPCR":  ("specr_texture",     "Specular Roughness"),         "MTL":   ("metal_texture",     "Metalness"),         "NRM":   ("norm_texture",      "Normal Map"),         "BMP":   ("bump_texture",      "Bump"),         "DISP":  ("disp_texture",      "Displacement"),         "OPA":   ("opacity_texture",   "Opacity"),         "SSS":   ("sss_texture",       "Subsurface Weight"),         "SSC":   ("ssc_texture",       "Subsurface Color"),         "SSR":   ("ssr_texture",       "Subsurface Radius"),         "TRA":   ("trans_texture",     "Transmission Weight"),         "TRAC":  ("transc_texture",    "Transmission Color"),         "TRL":   ("transl_texture",    "Translucency Weight"),         "TRLC":  ("translc_texture",   "Translucency Color"),         "EMI":   ("emit_texture",      "Emission Weight"), ``` ## UDIM number to UDIM ``` python def convert_udim_to_token(filepath): pattern = r'(\.[0-9]{4})(\.[^.]+)?$|(\.[0-9]{4}) ``` Remplace .0000. avant le .ext par ``<UDIM> ## TEX maker 2 Fonctions to try t improve the speed of texmaking First it will find texture base on 'texture folder finder of course' then you have 1. **`convert_textures_to_tx` (The Manager)**: - This is the function your button calls. - It gathers the list of 100 files. - It creates the "Worker Pool" (the 4 threads). - It says "Hey workers, here is a list of files, go process them!" 2. **`convert_to_tx_worker` (The Worker)**: - This function runs **inside each thread**. - It only knows how to convert **one single file**. - The "Manager" calls this function 100 times in parallel. # WIP **Currently find.tex is not working** Creating materials base on naming convention Assignement of material Usd Publish Variant model and material