1
$\begingroup$

I want to set the display device in Blender 2.69 to 'None' rather than 'sRGB' using a python script.

I have tried the following:

bpy.data.scenes[0].display_settings.display_device = 'None'

and

bpy.data.scenes[0].display_device = 'None'

The first one gave this error:

TypeError: bpy_struct: item.attr = val: enum "None" not found in ('sRGB')

and the second one gave this error:

AttributeError: 'Scene' object has no attribute 'display_device'

Any idea what I'm doing wrong?

$\endgroup$
9
  • $\begingroup$ Works in 2.76b... $\endgroup$
    – p2or
    Nov 17, 2015 at 11:02
  • 1
    $\begingroup$ Unfortunately, switching the Blender version is currently not an option :( $\endgroup$
    – Beginner
    Nov 17, 2015 at 11:04
  • 1
    $\begingroup$ Can't reproduce it - also works in 2.69 linux (download.blender.org/release/Blender2.69) $\endgroup$
    – p2or
    Nov 17, 2015 at 11:24
  • 2
    $\begingroup$ @poor: It was some corruption in the installation files I think, so removing Blender then installing it again solved the issue... Thanks for your care! :) $\endgroup$
    – Beginner
    Nov 18, 2015 at 12:14
  • 2
    $\begingroup$ I'm voting to close this question as off-topic because the issue is not reproducible. $\endgroup$
    – p2or
    Nov 18, 2015 at 12:34

0

Browse other questions tagged .