Having Two Blender versions for Jobs

Post Reply
User avatar
aditiavfx
Posts: 7
Joined: Mon Aug 14, 2017 4:02 pm
Location: Malaysia

Having Two Blender versions for Jobs

Post 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.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Having Two Blender versions for Jobs

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
User avatar
aditiavfx
Posts: 7
Joined: Mon Aug 14, 2017 4:02 pm
Location: Malaysia

Re: Having Two Blender versions for Jobs

Post 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.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: Having Two Blender versions for Jobs

Post 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.
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Post Reply