I know that Python is the standard scripting language to use inside Blender, but I have not found a way to create a .blend file using python.
What I want to do is not use python inside blender, but rather use blender (libs?) Inside python. "
My planned workflow will be as follows:
You can start the new Blender process from any application (C ++, Python, or even the command line) and tell the new process to start the script file (written in Python). This script will generate your geometry and then save the new scene in a file blend.
blend
To start a new Blender process and make it execute script use:blender.exe --background --python "c:\path to\script.py"
blender.exe --background --python "c:\path to\script.py"
, python python. .
python script script . bpy.ops.wm.save_as_mainfile(filepath="path/to/myfilename")
bpy.ops.wm.save_as_mainfile(filepath="path/to/myfilename")
script, blender, python script, , . , .
script , blender -b -P myscript.py -b, blender .
blender -b -P myscript.py
-b
Source: https://habr.com/ru/post/1538291/More articles:Configuring wpf datagrid (border, cell angles, etc.) - c #FANN - I get the wrong results (about 0) with a simple task - c ++Grunt + Compass does not create CSS file - node.jsSQL - classify employee arrival times - c #FANN XOR Training - c ++Get page title with cheerio - javascriptUnresolved external character with template function - c ++Could not compile existing project because Compass cannot find it - cssSoundCloud iOS SDK out of date? - iosDoes Prolog have an if and only if statement? - prologAll Articles