Is it possible to have various PreLoad.py scripts?

The reason is, I’ll need to render a project here that requires me to use Max 2009 and Max 2010 for various reasons.

The problem is, I have everything setup the way that I need to specify a various PATH paths for each version of Max so it loads up proper DLLs when needed.

So far, I’ve been doing it using a centralized PreLoad.py script without issues, however, I’ll need to do this now on a per job basis (or a per-plugin basis).

Is there a way to do so in Deadline?

Thanks a lot in advance, cheers…

Deadline only supports one PreLoad.py script per plugin, but you could have that script check the Max version number you’re rendering with and do different things for different versions. This code should get the max version number in your PreLoad.py script:

maxVersion = GetIntegerPluginInfoEntry( "Version" )
if maxVersion == 2010:
	# do something
elif maxVersion == 2011:
	# do something else

Let us know if that works.

Cheers,

  • Ryan

Nice!

This sounds like a solution!

I’ll give it a shot. Thanks a lot!