blender-egg-importer
blender-egg-importer copied to clipboard
Getting error when trying to load egg file in blender
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:
I have not tried to update this plug-in for Blender 3.0 yet.
Same here for 2.93.0 blender:
line 57, in execute for file in self.files: TypeError: '_PropertyDeferred' object is not iterable
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).