I am writing python scripts in blender for a team of 3D-Artists. The scripts and the blender version are on a network drive "R:". When calling the script
R:\blender-2.82a\blender.exe -b --python-expr "import bpy; print(bpy.context.preferences.addons['cycles'].preferences.devices.keys());"
The output for everybody is:
['GeForce GTX 1050', 'AMD Ryzen 5 3400G with Radeon Vega Graphics']
Which are my devices. The 3D-Artists have other devices. Can it be that the devices listed in the cycles addon are not derived at runtime? Or how could that happen? I want to activate the gpu for every 3D-Artist respectively, based on their own hardware.
Best, Manuel
get_devices()
. See this answer for reference. Note that the answer hasn't been updated to include OptiX. $\endgroup$