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

AttributeError: 'NoneType' object has no attribute 'name' #4

Open
xraise17 opened this issue Oct 11, 2023 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'name' #4

xraise17 opened this issue Oct 11, 2023 · 0 comments

Comments

@xraise17
Copy link

Hey I have been trying to run the your script by typing
python3 convert.py --input Apple_Summer0.obj --output Apple_Summer0.ply

and I am getting the following error:
Traceback (most recent call last):
File "file-converter-.obj-to-.ply/convert.py", line 122, in
args.func(args)
File "file-converter-.obj-to-.ply/convert.py", line 98, in main
result = mt.convert(args.input, output, up_conversion)
File "file-converter-.obj-to-.ply/d3/model/tools.py", line 98, in convert
return str(exporter)
File "file-converter-.obj-to-.ply/d3/model/formats/ply.py", line 489, in str
+ str(self.model.get_material_index(face.material))
File "file-converter-.obj-to-.ply/d3/model/basemodel.py", line 250, in get_material_index
return [i for (i,m) in enumerate(self.materials) if m.name == material.name][0]
File "file-converter-.obj-to-.ply/d3/model/basemodel.py", line 250, in
return [i for (i,m) in enumerate(self.materials) if m.name == material.name][0]
AttributeError: 'NoneType' object has no attribute 'name'

I am trying to debug the above error, I am thinking if I need to give more arguments?
I would appreciate any help,

Thanks in advance,
Christos P.

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

1 participant