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

Cannot import 3D model #153

Open
joyanngitau opened this issue Oct 8, 2024 · 3 comments
Open

Cannot import 3D model #153

joyanngitau opened this issue Oct 8, 2024 · 3 comments

Comments

@joyanngitau
Copy link

Ubuntu 24

I tried importing a model using both the search feature and url method but I am getting these errors:
Search:
Python: Traceback (most recent call last): File "/home/joyann/.config/blender/4.2/scripts/addons/sketchfab-plugin-1-6-1/__init__.py", line 1393, in modal bpy.context.scene.render.engine = "BLENDER_EEVEE" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: bpy_struct: item.attr = val: enum "BLENDER_EEVEE" not found in ('BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH', 'CYCLES')

URL:
Python: Traceback (most recent call last): File "/home/joyann/.config/blender/4.2/scripts/addons/sketchfab-plugin-1-6-1/__init__.py", line 1393, in modal bpy.context.scene.render.engine = "BLENDER_EEVEE" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: bpy_struct: item.attr = val: enum "BLENDER_EEVEE" not found in ('BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH', 'CYCLES')

@joyanngitau
Copy link
Author

Fixed it :)
Steps:

  1. Went to the init.py file causing the error and to the specific line:

/home/joyann/.config/blender/4.2/scripts/addons/sketchfab-plugin-1-6-1/__init__.py

  1. Switched bpy.context.scene.render.engine = "BLENDER_EEVEE" to bpy.context.scene.render.engine = "BLENDER_EEVEE_NEXT"

@MrHyplex9511
Copy link

In Blender 4.2 it was not working then i troubleshooted the problem cuz i am a skid.

I found out that if the error is fix line 1393, then open the innit.py file in the
(C:\Users\Your user\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\sketchfab-plugin-1-6-1/innit.py)
and go to line 1393. As shown below and

1392 if bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE"]:
1393 bpy.context.scene.render.engine = "BLENDER_EEVEE" <---------- Change BLENDER_EEVEE to BLENDER_EEVEE_NEXT
1394 try:

After fix it should look like this.

bpy.context.scene.render.engine = "BLENDER_EEVEE_NEXT"

Then save the file and relaunch blender. It should work

or replace your "innit.py" file with This one replace the file with the mentioned above

@ghulamshabbir631
Copy link

I also cannot import models
A python error coming

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

3 participants