Hello !
I’m using RunManagedProcess() to do my rendering. Recently I made a change to my plugin; instead returning full path to executable from ManagedProcess.RenderExecutable(), I return only exec name (renderdl.exe). I have set proper path envvar using Environment.SetEnvironmentVariable(“PATH”, newPath) but deadline can’t find renderdl.exe. Do I have to set full path with ManagedProcess.RenderExecutable() ? Or perhaps I set PATH in wrong place (I do it in DeadlinePlugin.RenderTasks() ) ?
Basically I need to dynamicaly setup rendering environment (ie. version of the renderer) based on datafile created on submission step.
thx
Yes, Deadline currently requires the full path to be specified for the render executable. Perhaps you could make use of the SearchPath() function mentioned here:
software.primefocusworld.com/sof … _Functions
So instead of:
return "renderdl.exe"
You would do this:
return SearchPath( "renderdl.exe" )
Cheers,
Thanks !
This partially solved my problems. However processes run through “ManagedProcess” ignore any environment variables specified by Environment.SetEnvironmentVariable.
In my particular case I need to choose 3delight version based on information from job submission file. 3delight needs two variables set: PATH and DELIGHT.
Is there any chance you modify ManagedProcess in next release, so that it inherits ENV from deadline plugin ?
I can see RunProcess() command inherits ENVs, but I can’t handle errors this way - right ?
thanks
We can’t reproduce this problem here. We created a simple test application to print out a specific environment variable that we were modifying from the plugin, and in every test we did (including using RunManagedProcess and RunProcess), the application recognized the changes. Can you post your plugin code here? We can take a look to see if anything stands out.
Cheers,
Thanks !
Ofcourse you’re right. I stripped my plugin to the barebone and indeed it works. Now I just have to find what goes wrong in my code.
No problem! Hopefully you can figure out what the problem is, and if you have any additional questions, let us know!
Cheers,