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

Getting error when trying to load egg file in blender #24

Open
aidanevangelist opened this issue Feb 21, 2022 · 4 comments
Open

Getting error when trying to load egg file in blender #24

aidanevangelist opened this issue Feb 21, 2022 · 4 comments

Comments

@aidanevangelist
Copy link

This is the error i get when trying to load the file in blender:

Python: Traceback (most recent call last):
File "C:\Users\aidan\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\blender-egg-importer-master_init_.py", line 57, in execute
for file in self.files:
TypeError: '_PropertyDeferred' object is not iterable

location: :-1

@rdb
Copy link
Owner

rdb commented Feb 28, 2022

I have not tried to update this plug-in for Blender 3.0 yet.

@andrewm41
Copy link

Same here for 2.93.0 blender:
line 57, in execute for file in self.files: TypeError: '_PropertyDeferred' object is not iterable

@korfriend
Copy link

same error for blender 3.5
work around:
in the "init.py", change the operator for property from '=' to ':'

filter_glob : props.StringProperty(default="*.egg;*.egg.pz;*.egg.gz", options={'HIDDEN'})

directory : props.StringProperty(name="Directory", options={'HIDDEN'})
files : props.CollectionProperty(type=bpy.types.OperatorFileListElement, options={'HIDDEN'})

load_external : props.BoolProperty(name="Load external references", description="Loads other .egg files referenced by this file as separate scenes, and instantiates them using DupliGroups.")
auto_bind : props.BoolProperty(name="Auto bind", default=True, description="Automatically tries to bind actions to armatures.")

and then, change the code of "os.path.join..."

for file in self.files:
path = os.path.join(self.directory, file.name)

to

    for file in self.files:
        path = os.path.join(str(self.directory), file.name)

this works for me, but it still didn't work for some animated egg files (e.g. panda-walk.egg).

@FISHYATAHT
Copy link

Blender 4.0 doesn't work either...

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

5 participants