mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:22:09 +02:00
blender: use long arguments (#7663)
This commit is contained in:
parent
0c961545ed
commit
41394e7515
1 changed files with 8 additions and 8 deletions
|
@ -2,32 +2,32 @@
|
|||
|
||||
> Command-line interface to the Blender 3D computer graphics application.
|
||||
> Arguments are executed in the order they are given.
|
||||
> More information: <https://docs.blender.org/manual/en/latest/advanced/command_line/>.
|
||||
> More information: <https://manned.org/blender>.
|
||||
|
||||
- Render all frames of an animation in the background, without loading the UI (output is saved to `/tmp`):
|
||||
|
||||
`blender -b {{filename}}.blend -a`
|
||||
`blender --background {{filename}}.blend --render-anim`
|
||||
|
||||
- Render an animation using a specific image naming pattern, in a path relative (`//`) to the .blend file:
|
||||
|
||||
`blender -b {{filename}}.blend -o //{{render/frame_###.png}} -a`
|
||||
`blender --background {{filename}}.blend --render-output //{{render/frame_###.png}} --render-anim`
|
||||
|
||||
- Render the 10th frame of an animation as a single image, saved to an existing directory (absolute path):
|
||||
|
||||
`blender -b {{filename}}.blend -o {{/path/to/output_directory}} -f {{10}}`
|
||||
`blender --background {{filename}}.blend --render-output {{/path/to/output_directory}} --render-frame {{10}}`
|
||||
|
||||
- Render the second last frame in an animation as a JPEG image, saved to an existing directory (relative path):
|
||||
|
||||
`blender -b {{filename}}.blend -o //{{output_directory}} -F {{JPEG}} -f {{-2}}`
|
||||
`blender --background {{filename}}.blend --render-output //{{output_directory}} --render-frame {{JPEG}} --render-frame {{-2}}`
|
||||
|
||||
- Render the animation of a specific scene, starting at frame 10 and ending at frame 500:
|
||||
|
||||
`blender -b {{filename}}.blend -S {{scene_name}} -s {{10}} -e {{500}} -a`
|
||||
`blender --background {{filename}}.blend --scene {{scene_name}} --frame-start {{10}} -e {{500}} --render-anim`
|
||||
|
||||
- Render an animation at a specific resolution, by passing a Python expression:
|
||||
|
||||
`blender -b {{filename}}.blend --python-expr '{{import bpy; bpy.data.scenes[0].render.resolution_percentage = 25}}' -a`
|
||||
`blender --background {{filename}}.blend --python-expr '{{import bpy; bpy.data.scenes[0].render.resolution_percentage = 25}}' --render-anim`
|
||||
|
||||
- Start an interactive Blender session in the terminal with a python console (do `import bpy` after starting):
|
||||
|
||||
`blender -b --python-console`
|
||||
`blender --background --python-console`
|
||||
|
|
Loading…
Add table
Reference in a new issue