2016-11-26 15:55:38 +00:00
|
|
|
# blender
|
|
|
|
|
|
|
|
> Command-line interface to the Blender 3D computer graphics application.
|
|
|
|
> Arguments are executed in the order they are given.
|
2023-04-13 13:34:01 +05:30
|
|
|
> More information: <https://docs.blender.org/manual/en/latest/advanced/command_line/arguments.html>.
|
2016-11-26 15:55:38 +00:00
|
|
|
|
|
|
|
- Render all frames of an animation in the background, without loading the UI (output is saved to `/tmp`):
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-a|--render-anim]}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
|
|
|
- Render an animation using a specific image naming pattern, in a path relative (`//`) to the .blend file:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} //{{render/frame_###.png}} {{[-a|--render-anim]}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
- Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path):
|
2016-11-26 15:55:38 +00:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} {{/path/to/output_directory}} {{[-f|--render-frame]}} {{10}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
- Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path):
|
2016-11-26 15:55:38 +00:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-o|--render-output]}} //{{output_directory}} {{[-f|--render-frame]}} {{JPEG}} {{[-f|--render-frame]}} {{-2}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
|
|
|
- Render the animation of a specific scene, starting at frame 10 and ending at frame 500:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} {{[-S|--scene]}} {{scene_name}} {{[-s|--frame-start]}} {{10}} {{[-e|--frame-end]}} {{500}} {{[-a|--render-anim]}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
|
|
|
- Render an animation at a specific resolution, by passing a Python expression:
|
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} {{path/to/file.blend}} --python-expr '{{import bpy; bpy.data.scenes[0].render.resolution_percentage = 25}}' {{[-a|--render-anim]}}`
|
2016-11-26 15:55:38 +00:00
|
|
|
|
pages*: fix brand and technical names (#12145)
* pages*: fix Python, Java, pacman, apt, *zip*, xz, tar, git, RPM and grep names
* pages*: fix brand and technical names
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
* fluxctl, gitmoji, in-toto-run, osv-scanner: replace `git` with Git
* bzegrep: enclose egrep with backticks
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-bug: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* git-force-clone: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* gitwatch: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* hub-init: use Git instead of `git`
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
* pages.*: use Linux instead of GNU/Linux
---------
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2024-01-30 01:46:32 -03:00
|
|
|
- Start an interactive Blender session in the terminal with a Python console (do `import bpy` after starting):
|
2016-11-26 15:55:38 +00:00
|
|
|
|
2025-03-28 05:26:23 +02:00
|
|
|
`blender {{[-b|--background]}} --python-console`
|