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.
Having Two Blender versions for Jobs
Re: Having Two Blender versions for Jobs
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.
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).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
Re: Having Two Blender versions for Jobs
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.
Is this route safe?
Again thank you Timur for yout guidance.
Currently I try the route of modifying existing blender software setup and create another for blender 3.3.
Is this route safe?
Again thank you Timur for yout guidance.
Re: Having Two Blender versions for Jobs
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.
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).
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).