Rez
Rez is an environment manager that allows us to launch DCCs in isolated contexts including mandatory libraries only, define environment variables specific to this environment or define special cases for each team in the school.
Everything can be found in the documentation on GitHub : https://github.com/AcademySoftwareFoundation/rez
In the pipeline, the REZ packages are localized on the server in\\prod.silex.artfx.fr\rez\
The DCC packages and team packages can be found in
\\prod.silex.artfx.fr\rez\packages\silex-rez\packages\
- packages
- 5rn
- dcc
🦉
The team packages (5rn) are usually empty shells, they initially requires the render engine package used by the team and the aces config. But you can add specific tools or environnements to their specific needs.
Example :
In this case, we link a new config to the SILEX_ACTION_CONFIG environnement variable so the team Quit_smoking has a special vrscene action YAML specific to their needs.
# -*- coding: utf-8 -*-
name = 'quit_smoking'
version = '1.0'
authors = ['ArtFx TD gang']
variants = [["maya"], ["houdini"], ["nuke"], ["silex_client"], ["silex_maya"], ["silex_houdini"]]
requires = [
'vray',
'aces',
"texturetotx",
]
timestamp = 1635410671
vcs = 'git'
format_version = 2
def commands():
env.SILEX_ACTION_CONFIG.prepend("{root}/config")
Here is an example of REZ package for the Maya Plugin :
name = "maya"
version = "2022.0"
requires = [
"python-3.7",
]
tools = [
"fcheck",
"imgcvt",
"maya",
"mayabatch",
"mayapy",
"rcc",
"uic",
]
variants = [
["platform-windows"]
]
def commands():
import sys
sys.path.append(root)
import mayaenv
mayaenv.commands(env, root)
The Plugins repositories and silex_client can be found in :
\\prod.silex.artfx.fr\rez\packages\silex-rez\packages\silex\
silex
- aiogazu
- silex_client
- silex_houdini
- silex_maya
- silex_nuke
Here is an example of repository package.py :
The SILEX_ACTION_CONFIG environnement variable is explained in the Action definition doctumentation.
# pylint: skip-file
name = "silex_maya"
version = "0.1.0"
authors = ["ArtFx TD gang"]
description = """
Set of python module and maya config to integrate maya in the silex pipeline
Part of the Silex ecosystem
"""
vcs = "git"
build_command = "python {root}/script/build.py {install}"
def commands():
"""
Set the environment variables for silex_maya
"""
env.SILEX_ACTION_CONFIG.prepend("{root}/silex_maya/config")
env.PYTHONPATH.append("{root}")
env.PYTHONPATH.append("{root}/startup")
env.XBMLANGPATH.append("{root}/startup/icons")
parser_module = ".".join(["silex_maya", "cli", "parser"])
alias("silex", f"mayapy -m {parser_module}")
@late()
def requires():
"""
Manage versions
"""
major = str(this.version.major)
silex_requirement = ["silex_client"]
if major in ["dev", "beta", "prod"]:
silex_requirement = [f"silex_client-{major}"]
return ["maya", "python-3.7"] + silex_requirement
Updating the repositories
The rez repositories are the back bone of Silex. If you make any changes to the plugins or the silex_client you can connect to the prod server by ssh using :
ssh td@prod.silex.artfx.fr
Then update the the repositories using the git command :
git submodule update --remote
The student will be able to enjoy your awsome new features ! _(^^)/
Beta and Prod
In\\prod.silex.artfx.fr\rez\packages\silex-rez\packages\silex\
, if you look in any of the silex_folder, you will be able to see a **beta** and a **prod** folder. They both contain the branch of the same name in the repository, and are updated according to these branches.