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

Can't import models #155

Open
secretgspot opened this issue Nov 4, 2024 · 2 comments
Open

Can't import models #155

secretgspot opened this issue Nov 4, 2024 · 2 comments

Comments

@secretgspot
Copy link

secretgspot commented Nov 4, 2024

Blender latest 4.2.3 LTS on Windows 10
Search for something like a chair, select and click Import, get an error. (works if switch to cycles)

Python: Traceback (most recent call last):
File "C:\Users\Me\AppData\Roaming\Blender Foundation\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')

@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

@axel584
Copy link

axel584 commented Nov 17, 2024

In fact, i think it will be better to add BLENDER_EEVEE_NEXT in the first line (1392) :
if bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE","BLENDER_EEVEE_NEXT"]:

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