AWS Thinkbox Discussion Forums

Prerender script's presence in filecache node causes path mapping to completely break

Hey,
I was testing out Deadline on my PC and I noticed that any scenes that have a mutiline python script in use essentially can’t be used with deadline. I have a simple prerender script which I use to save a current version of my hip file alongside any file caches I make, and the path mapper seems to completely fall apart if it’s present in my project file.

It appears to be grafting each individual line of the script to any following string parameter in the scene:

2024-06-04 14:07:52:  0: STDOUT: b''
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/obj/Main_ENV/filecache1/prerender" from "# This is intended to be used as a pre-render script with a file cache node, saving the current hipfile alongside the cached files
2024-06-04 14:07:52:  0: STDOUT: import os
2024-06-04 14:07:52:  0: STDOUT: org_file_name = hou.hipFile.path()
2024-06-04 14:07:52:  0: STDOUT: backup_file_name = hou.evalParm('../cachedir')+'/'+hou.hipFile.basename()
2024-06-04 14:07:52:  0: STDOUT: os.makedirs(os.path.dirname(backup_file_name), exist_ok=True)
2024-06-04 14:07:52:  0: STDOUT: hou.hipFile.save(file_name=backup_file_name, save_to_recent_files=False) 
2024-06-04 14:07:52:  0: STDOUT: hou.hipFile.setName(org_file_name) " to "# This is intended to be used as a pre-render script with a file cache node, saving the current hipfile alongside the cached files"
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/obj/Main_ENV/filecache1/basedir" from "$HIP/geo" to "import os"
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/obj/Main_ENV/z_font/file" from "Lato Bold" to ""
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/obj/hlight1/shadowmap_file" from "temp:$OS.rat" to "org_file_name = hou.hipFile.path()"
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/stage/rendergallerysource" from "$HIP/galleries/$HIPNAME.$OS/rendergallery.db" to "backup_file_name = hou.evalParm('../cachedir')+'/'+hou.hipFile.basename()"
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/tasks/topnet1/checkpointfile" from "$HIP/$HIPNAME.checkpoint.json" to "os.makedirs(os.path.dirname(backup_file_name), exist_ok=True)"
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/tasks/topnet1/taskgraphfile" from "$HIP/$HIPNAME.taskgraph.$F.py" to ""
2024-06-04 14:07:52:  0: STDOUT: Updating Parm "/tasks/topnet1/localscheduler/pdg_workingdir" from "$HIP" to "hou.hipFile.save(file_name=backup_file_name, save_to_recent_files=False)"
2024-06-04 14:07:53:  0: STDOUT: b''
2024-06-04 14:07:53:  0: STDOUT: End Path Mapping

I’ve included a test scene I made which shows the issue. I’m not sure if this is an issue on my end or some edgecase with how the pathmapper runs through multiline strings.
adl_deadlinePathweirdness.zip (222.7 KB)

I have the same issue. currently had to delete my post-render script which wasn’t even on the submitted rop. Jobs now dont fail thankfully

Privacy | Site terms | Cookie preferences