I tried to access the FPS setting of the render settings in a shader node through a driver expression. The attempt was successful, but I got a warning and a tip saying:
WARNING: Driver expression may not work correctly
TIP: bpy.context is not safe for renderfarm usage
According to this thread the proper way to set the active scene is through bpy.context
.
Therefor, I assumed, that the proper way to get the active scene would be through bpy.context
as well.
This warning however makes me feel like there is a more proper way to access scene data (like render settings) through drivers so they would also work in renderfarms.
So my question is: How do I properly access this kind of data in a driver expression?
context
See How can a blender driver python script access scene properties like FPS? $\endgroup$