Page 1 of 1

Having Two Blender versions for Jobs

Posted: Sun Sep 25, 2022 6:00 am
by aditiavfx
Hello,

Is there a way to have 2 different blender versions for running different jobs? For example Jobs A render using 2.93 while Jobs B using 3.3.

Thank you.

Re: Having Two Blender versions for Jobs

Posted: Mon Sep 26, 2022 9:15 am
by timurhai
Hi!

There is no "out-of-the-box" method for it in the CGRU project.
Many studios manages environment in there own vay.
https://github.com/CGRU/cgru/blob/maste ... nder.sh#L8
setup_blender script uses BLENDER_LOCATION environment variable

Some are using Rez package management system:
https://github.com/CGRU/cgru/pull/539

We are using working directory to set software version.
You should launch soft from project(shot) A or B, and not just launch soft by double click an icon on a desctop.
This is the most frexible way, as you can define completey other environment for different projects (assets).
Having different environmrnt, you can use a different set of software versions, plug-ins, scripts and any other settings.

There is one more simple way to vary just some value(s) using Afanasy job block environment variables.
https://cgru.readthedocs.io/en/latest/a ... nvironment
You can define a variable that specifies Blender version. Then use this variable in the setup Blender script (BLENDER_LOCATION).

As far as I know CGRU Blender submisson plugin does not provides any way to set an extra environment variable.
But is is written on Python, you can add extra option for it yourself.

Re: Having Two Blender versions for Jobs

Posted: Mon Sep 26, 2022 11:10 am
by aditiavfx
Thank you for the answer and guide Timur,

Currently I try the route of modifying existing blender software setup and create another for blender 3.3.

Image

Is this route safe?

Again thank you Timur for yout guidance.

Re: Having Two Blender versions for Jobs

Posted: Mon Sep 26, 2022 3:37 pm
by timurhai
So, Blender2 will call locate_blender.sh and how Blender3 will know to call locate_blender3.sh?
If you already have some way - it is normal, it is safe.