# 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})