Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'Context' object has no attribute 'user_preferences'. #26

Open
miguev opened this issue Jan 9, 2023 · 1 comment
Open

Comments

@miguev
Copy link

miguev commented Jan 9, 2023

The latest (master) version of the script (Sep 17, 2020) fails with Blender 3:

Sound Found
Error: Python: Traceback (most recent call last):
  File "/home/miguev/Fotos/scripts/video_editors_render_script_2020_blender_snap.py", line 520, in <module>
    try_sample_format = bpy.context.user_preferences.system.audio_sample_format
AttributeError: 'Context' object has no attribute 'user_preferences'. Did you mean: 'preferences'?

Blender quit

This seems to happen because blender_ver has only 3 digits, at least for some versions (e.g. 340 for Blender 3.4.1).

@miguev
Copy link
Author

miguev commented Jan 9, 2023

I should also mention that, other than this, the script works wonderfully well with Blender 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant