Hi!
We're trying to render Nuke scripts containing tk-nuke-writenodes on our renderfarm.
This fails because our nuke script template has user-specific parts in them (the initials of the artist). However, the user on the renderfarm can't be the one that submits the job, it's just the render-user which started the (Deadline) render slave. So loading the tk-nuke-writenodes app fails because it can't load the Nuke script filename template.
Is there any way using sgtk to force the user context to be a certain user? I tried figuring out the user from the nuke script being opened, using the contained artist initals to look up the user in Shotgun and then putting this into the context the tk-nuke engine is started with (in Nuke's init.py). However, as soon as the render Nuke script is opened, sgtk constructs a new context from the filename overwriting the old one and loses the user again (causing the tk-nuke-writenode app to fail -> TankWrite nodes are unknown to Nuke -> render fails).
I guess we could take the initials out of the templates, but we would really like to keep them...
(I'm also looking into having Deadline set the environment of the render job to contain the user login who submitted the job, which might solve the problem in a more general way).
Cheers,
SebastianH