Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import bpy
  2. bpy.context.user_preferences.system.compute_device_type = 'CUDA'
  3. bpy.context.user_preferences.system.compute_device = 'CUDA_MULTI_2'
  4.  
  5. AttributeError: 'UserPerferencesSystem' object has no attribute 'compute_device_type'
  6.  
  7. prefs = bpy.context.user_preferences.addons['cycles'].preferences
  8. print(prefs.compute_device_type)
  9.  
  10. for d in prefs.devices:
  11. print(d.name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement