Website Youtube GitHub

Cache Manager environment variables


#1

Whoo hoo for mGear 3.2! I’m investigating some of the new features. On the release podcast, Jerome mentioned some environment variables for his GPU cache manager in animbits.

I don’t know if they are in the documentation yet, but here they are typed out, if anyone comes searching for them:

# RIG SEARCH ATTRIBUTE
os.environ["MGEAR_CACHE_MANAGER_RIG_ATTRIBUTE"] = ""

# RIG MODEL GROUP
os.environ["MGEAR_CACHE_MANAGER_MODEL_GROUP"] = ""

# CACHE DESTINATION
os.environ["MGEAR_CACHE_MANAGER_CACHE_DESTINATION"] = ""

#2

Thanks for this awesome feature. When I add the attr to the rig it works and it’s quite handy for the animators!

It doesn’t seem to work the env variables though. Like in your video I get an empty list when looking for a custom attr.

found a solution just needed to reload mgear cache manager

import os
os.environ[“MGEAR_CACHE_MANAGER_RIG_ATTRIBUTE”] = “drvSysVis”
reload(mgear.animbits.cache_manager.query)


#3

Hello @liudger

For now the env variables neeed to be set at Maya starting point.

I will change this on future releases.