mesh2img icon indicating copy to clipboard operation
mesh2img copied to clipboard

AttributeError: 'NoneType' object has no attribute 'split'

Open ayennam opened this issue 4 years ago • 5 comments

cadtoimg/mesh2img$ blender -b -P mesh2img.py -- --paths /home/cadtoimg/bunny/data/bun180.ply --dimensions 200

Blender 2.90.1 Read prefs: /home/.config/blender/2.90/config/userpref.blend ALSA lib confmisc.c:767:(parse_card) cannot find card '0' ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory Traceback (most recent call last): File "/home/cadtoimg/mesh2img/mesh2img.py", line 485, in Mesh2Img(**cliargs).start() # pass in all the paths given on the command line File "/home/cadtoimg/mesh2img/mesh2img.py", line 84, in init self.materials = [mat_name.strip() for mat_name in material.split(',')] AttributeError: 'NoneType' object has no attribute 'split'

ayennam avatar Nov 20 '20 15:11 ayennam

Did you find any solution for the problem?

anycam avatar Dec 11 '20 06:12 anycam

Blender has changed since this package was written so you should update it before using it.

Hamza442004 avatar Dec 12 '20 00:12 Hamza442004

add "-m Material" argument: blender -b -P mesh2img.py -- --paths /home/cadtoimg/bunny/data/bun180.ply --dimensions 20 -m Material

duswie avatar Dec 16 '20 13:12 duswie

@Hamza442004 I'm using your fork, and it seems to be working. It would help if you made a pull request.

ByteDrummer avatar Dec 23 '20 06:12 ByteDrummer

@ByteDrummer Merged.

phistrom avatar Dec 23 '20 06:12 phistrom