Example:
| import os | |
| from rez.resolved_context import ResolvedContext | |
| from rez.package_repository import package_repository_manager | |
| os.environ["REZ_PACKAGES_PATH"] = "memory@any" | |
| class Repo(object): |
This is a note to self, to know why Maya renderSetup fails to apply renderLayer override on AOVs that are same type/name. (e.g. not able to disable specific AOV in renderLayer)
In Arnold, this happens when creating custom AOV with existing AOV name.
In Redshift, this happends when creating more than one AOV node that are same AOV type.
Hopefully, this will be fixed officially someday.
This is for identifying any geometry mesh changes during dependency data collecting process in publish, in Maya. Especially when publishing lookDev/Rig.
Artist often needs to work on modeling and look developing all together, which means the working model often not being the published one. And in publish process, system may not know which version of model is the dependency of current look.
To solve this kind of problem, we need to generate hashcode that based on target's feature. Take model as example, the hash function would based on mesh vertex position, normal, and UV.
With that hashcode saved with model verison data in database, we can verify look's model with previous version's hashcode to see if it's unchanged and matched the latest version of subset.
Paired sotring
The testing resources are taken from Boost */libs/wave/test/testwave/testfiles/utf8-test-*
Here are the references : https://stackoverflow.com/q/37933910/4145300 https://superuser.com/a/190786/579628
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
| Index: src/rezplugins/shell/_utils/powershell_base.py | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| diff --git a/src/rezplugins/shell/_utils/powershell_base.py b/src/rezplugins/shell/_utils/powershell_base.py | |
| --- a/src/rezplugins/shell/_utils/powershell_base.py (revision d392c65bf63b4bca8106f938cec49144ba54e770) | |
| +++ b/src/rezplugins/shell/_utils/powershell_base.py (date 1644346789393) | |
| @@ -88,26 +88,14 @@ | |
| cls.syspaths = config.standard_system_paths |
| from rez.config import config | |
| from rez.rex import ActionInterpreter | |
| from rez.resolved_context import ResolvedContext | |
| config.packages_path.append("memory@any") | |
| def memory_repository(packages): |
