blender-egg-importer icon indicating copy to clipboard operation
blender-egg-importer copied to clipboard

Getting error when trying to load egg file in blender

Open aidanevangelist opened this issue 2 years ago • 4 comments

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

aidanevangelist avatar Feb 21 '22 18:02 aidanevangelist

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

rdb avatar Feb 28 '22 10:02 rdb

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

andrewm41 avatar Mar 10 '22 12:03 andrewm41

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..." https://github.com/rdb/blender-egg-importer/blob/27cc3ecc737d2b7dac453afa83037c5c79960374/init.py#L57-L58

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).

korfriend avatar Jun 08 '23 08:06 korfriend