phistrom / mesh2img Goto Github PK
View Code? Open in Web Editor NEWA Blender Python script for converting PLY and STL files into images
License: MIT License
A Blender Python script for converting PLY and STL files into images
License: MIT License
With the original script, the left side of the models I've been converting comes out really dark. So far, in set_camera()
. I've just been making it so the light source is placed in the same position as the camera, which has been working well enough. I think an option for entering the light position would be helpful, though.
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?
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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.