I'm writing a Python script that creates a Blender scene; I'm running it from the command line with blender -P script.py. However, the splash screen always appears and it's really annoying. Is there something I can do from the script that prevents the splash screen from showing up for just that invocation of Blender? Note that I do not want to change the global preference.

The tooltip over the user preferences splash screen setting recommends bpy.types.UserPreferencesView.show_splash, but changing this from my script doesn't seem to do anything.

  • $\begingroup$ Is there a reason why you invoke your script via command line in window-mode? You would typically run a script via a button in the UI if you work in Blender, or run a script via command line with blender in background mode (no window, usually for rendering). $\endgroup$ – CodeManX Dec 2 '13 at 16:29
  • $\begingroup$ I'm not working in Blender. I'm just using it to look at the results of another tool. $\endgroup$ – David Given Dec 2 '13 at 18:10

The attribute to change is not in UserPreferencesView type, but in that class' instance. The right instance to modify, currently used viewing data preferences, is the view attribute of bpy.context.user_preferences:

import bpy

bpy.context.user_preferences.view.show_splash = False
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.