Force the cache media function active by default in the mediahub

Hi,

In order to avoid a recurring error during imports, is it possible via the configuration files to force the cache media function active by default in the mediahub each time the flame is started?

Thanks

1 Like

Merci à Frederic Warren pour cette réponse


Bonjour SĂ©bastien,

One thing you can do right now to make sure that Cache is always enabled by default is to add:

import flame
flame.mediahub.files.options.cache_mode = True

in the app_initialized() hook available in /opt/Autodesk//python/hook.py

That way the option will always be enabled when the application is launched

2 Likes