Table of Contents
nix shell git+https://github.com/fetsorn/sanwei
pip install sanwei
# render a random chinese character with WenQuanYi Zen Hei font
nix build git+https://github.com/fetsorn/sanwei#image
sanwei --binary /path/to/blender \
--font-path "/path/to/font" \
--font-name "Font Name Regular"
-
"--binary", required, path to Blender binary executable, e.g. "/Applications/Blender.app/Contents/MacOS/Blender"
-
"--font-path", required, path to chinese font, e.g. "./path/to/chinese.ttc"
-
"--font-name", required, name of the font in bpy.data.fonts, e.g. "Chinese Font Regular"
-
"--output", optional, name for output file without the .png extension, defaults to "/tmp/sanwei" and creates a "/tmp/sanwei.png" file
-
"--input", optional, arbitrary text to render, defaults to a random chinese character
-
"--resolution", optional, percentage scale for render resolution, int in [1, 32767], default 100
-
"--samples", optional, number of samples for the Cycles render engine, default 128
sanwei
is distributed under the terms of the MIT license.