Simplest way to switch Redshift version from app

Hi all,

I’m looking for a simple way to switch RS versions when submitting.

Currently loading in RS from a central location such as
\servername\sw\rs\3.0.31

\servername\sw\rs\3.0.37

The version is usually from from this root variable
REDSHIFT_COREDATAPATH = \\servername\sw\rs\redshift\3.0.33

Is there a way to create a simple override for this?

Having a look through the docs atm

and will have a play to see what works, but hoping i’m overlooking something simple where I can get the artist to easily set the override when testing different versions etc

Hi
We solved a similar problem with writing a custom event plugin. Our problem isn’t exactly the same as yours but it might give an idea on how to solve this.
In our case we needed to change the RS version (+ c4d plugin directories, script directories and library directories) used based on which version of C4D and Houdini that was used to submit the job. So if C4D R21 was used we needed it to load RS version 2.6.33 or if C4D R23 was used we needed to load RS version 3.0.33.
Our event plugin works like this:

  • It uses the OnJobSubmitted callback to check if job.JobPlugin == “Cinema4D”.
  • If thats the case we check what version of C4D was used to submit the job with self.GetIntegerPluginInfoEntry( “Version” )
  • Then we loop through a set of env vars for that particular C4D and RS version to set the correct job.SetJobEnvironmentKeyValue( var, value ) values.

The file with the list of env vars for each version of C4D and Houdini are the same file we use to set env var when users launch the different versions of Cinema or Houdini. This way we make sure the the version of RS the user was using to make the scene is the same being used when the job is rendered in DL.

Regards
Bonsak

1 Like

Thanks Bonsak,

The workaround I’m using atm is to manually edit the ‘Job Properties’ in the deadline job after submission. Using Maya 2020.4 only, so I’m just setting environment variable overrides for the following

MAYA_MODULE_PATH = /usr/autodesk/maya2020/modules_3.0.34
REDSHIFT_COREDATAPATH = /usr/redshift_3.0.34

I’ll look into to using this type of event for this,
thanks again
Ant