phistrom / mesh2img

A Blender Python script for converting PLY and STL files into images
MIT License
34 stars 11 forks source link

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse" #1

Open godeye opened 7 years ago

godeye commented 7 years ago

blender -b -P mesh2img.py -- --paths cube.stl --dimen sions 200 -i jpg AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse" AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead Traceback (most recent call last): File "/srv/mesh2img/mesh2img.py", line 485, in Mesh2Img(**cliargs).start() # pass in all the paths given on the command li ne File "/srv/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'

Blender quit

what this mean?

phistrom commented 7 years ago

Hi, @godeye

If you go to Line 60 and replace that None with two quotation marks back-to-back "" does that fix it?

Change it from def __init__(self, paths=None, dimensions=None, material=None, image_format=None, verbose=False, ... To def __init__(self, paths=None, dimensions=None, material="", image_format=None, verbose=False, ...

If you could confirm that fixes it, I will make the changes to this repo.

Thanks!

cjhyy7190 commented 4 years ago

hello , I change the script as above. But it also has the same mistake.

wine3603 commented 4 years ago

same error