Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bpy
- bpy.context.user_preferences.system.compute_device_type = 'CUDA'
- bpy.context.user_preferences.system.compute_device = 'CUDA_MULTI_2'
- AttributeError: 'UserPerferencesSystem' object has no attribute 'compute_device_type'
- prefs = bpy.context.user_preferences.addons['cycles'].preferences
- print(prefs.compute_device_type)
- for d in prefs.devices:
- print(d.name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement