Argumentos de la línea de comandos¶
blender [args ...] [archivo] [args ...]Opciones de procesamiento¶
-b,--backgroundRun in background (often used for UI-less rendering).
The audio device is disabled in background-mode by default and can be re-enabled by passing in
-setaudio Defaultafterwards.-a,--render-animRender frames from start to end (inclusive).
-S,--scene<nombre>Define la escena activa
<nombre>para que sea procesada.-f,--render-frame<fotograma>Procesará el fotograma
<fotograma>y lo guardará.+<fotograma>fotograma de inicio relativo,-<fotograma>fotograma de fin relativo.También será posible usar una lista de fotogramas separados por comas (sin espacios).
Se podrá definir un rango de fotogramas usando el separador
..entre el primer y último fotograma (que estará incluido).
-s,--frame-start<fotograma>Set start to frame
<frame>, supports +/- for relative frames too.-e,--frame-end<fotograma>Set end to frame
<frame>, supports +/- for relative frames too.-j,--frame-jump<fotogramas>Set number of frames to step forward after each rendered frame.
-o,--render-output<ruta>Set the render path and file name. Use
//at the start of the path to render relative to the blend-file.You can use path templating features such as
{blend_name}in the path. See Blender’s documentation on path templates for more details.The
#characters are replaced by the frame number, and used to define zero padding.prueba_##_animación.pngse transformará enprueba_01_animación.pngprueba-######.pngse transformará enprueba-000001.png
When the filename does not contain
#, the suffix####is added to the filename.El número de fotograma será agregado al final del nombre del archivo, p.ej:
blender -b animation.blend -o //render_ -F PNG -x 1 -a
//anim_se transformará en//anim_####, guardando fotogramas como//anim_0001.png-E,--engine<motor>Specify the render engine. Use
-E helpto list available engines.-t,--threads<hilos>Use amount of
<threads>for rendering and other operations [1-1024], 0 to use the systems processor count.
Opciones de procesamiento con Cycles¶
Cycles add-on options must be specified following a double dash.
--cycles-device<dispositivo>Establece el dispositivo usado para el procesamiento. Las opciones válidas son:
CPUCUDAOPTIXHIPONEAPIMETAL.Anexar +CPU a un dispositivo GPU para procesar tanto en CPU como en GPU.
Ejemplo:
blender -b file.blend -f 20 -- --cycles-device OPTIX
--cycles-print-statsLog statistics about render memory and time usage.
Opciones de formato¶
-F,--render-format<formato>Establece el formato de imagen procesada. Las opciones válidas son:
TGARAWTGAJPEGIRISAVIRAWAVIJPEGPNGBMPHDRTIFF.Formatos que pueden ser compilados en Blender, pero no disponibles en todos los sistemas:
OPEN_EXROPEN_EXR_MULTILAYERFFMPEGCINEONDPXJP2WEBP.-x,--use-extension<booleana>Set option to add the file extension to the end of the file.
Opciones de reproducción de animación¶
-a<opciones><archivo(s)>Instead of showing Blender’s user interface, this runs Blender as an animation player, to view movies and image sequences rendered in Blender (ignored if
-bis set).Argumentos de reproducción:
-p<sx><sy>Open with lower left corner at
<sx>,<sy>.-mRead from disk (Do not buffer).
-f<fps><fps_base>Specify FPS to start with.
-j<fotograma>Set frame step to
<frame>.-s<fotograma>Play from
<frame>.-e<fotograma>Play until
<frame>.-c<memoria_caché>Amount of memory in megabytes to allow for caching images during playback. Zero disables (clamping to a fixed number of frames instead).
Opciones de ventana¶
-w,--window-borderForce opening with borders.
-W,--window-fullscreenForce opening in full-screen mode.
-p,--window-geometry<sx><sy><ancho><altura>Open with lower left corner at
<sx>,<sy>and width and height as<w>,<h>.-M,--window-maximizedForce opening maximized.
-con,--start-consoleStart with the console window open (ignored if
-bis set), (Windows only).--no-native-pixelsDo not use native pixel size, for high resolution displays (MacBook
Retina).--no-window-focusOpen behind other windows and without taking focus.
Opciones de Python¶
-y,--enable-autoexecEnable automatic Python script execution.
-Y,--disable-autoexecDisable automatic Python script execution (Python-drivers & startup scripts), (default).
-P,--python<ruta_a_archivo>Run the given Python script file.
--python-text<nombre>Run the given Python script text block.
--python-expr<expresión>Run the given expression as a Python script.
--python-consoleEjecutar Blender con una consola interactiva.
--python-exit-code<código>Set the exit-code in [0..255] to exit if a Python exception is raised (only for scripts executed from the command line), zero disables.
--python-use-system-envAllow Python to use system environment variables such as
PYTHONPATHand the user site-packages directory.--addons<complemento(s)>Comma separated list (no spaces) of add-ons to enable in addition to any default add-ons.
Opciones de red¶
--online-modeAllow internet access, overriding the preference.
--offline-modeDisallow internet access, overriding the preference.
Opciones de registro¶
--log<coincidencia>Enable logging categories, taking a single comma separated argument. Multiple categories can be matched using a
.*suffix, so--log "wm.*"logs every kind of window-manager message. Sub-string can be matched using a*prefix and suffix, so--log "*undo*"logs every kind of undo-related message. Use «^» prefix to ignore, so--log "*,^wm.operator.*"logs all except forwm.operators.*Use «*» to log everything.--log-level<nivel>Set the logging verbosity level (higher for more details) defaults to 1, use -1 to log all levels.
--log-show-basenameOnly show file name in output (not the leading path).
--log-show-backtraceShow a back trace for each log message (debug builds only).
--log-show-timestampShow a timestamp for each log message in seconds since start.
--log-file<ruta_a_archivo>Set a file to output the log to.
Opciones de depuración¶
-d,--debugTurn debugging on.
Enables memory error detection
Disables mouse grab (to interact with a debugger in some cases)
Keeps Python’s
sys.stdinrather than setting it to None
--debug-value<valor>Set debug value of
<value>on startup.--debug-eventsEnable debug messages for the event system.
--debug-ffmpegEnable debug messages from FFmpeg library.
--debug-handlersEnable debug messages for event handling.
--debug-libmvEnable debug messages from libmv library.
--debug-cyclesEnable debug messages from Cycles.
--debug-memoryEnable fully guarded memory allocation and debugging.
--debug-jobsEnable time profiling for background jobs.
--debug-pythonEnable debug messages for Python.
--debug-depsgraphEnable all debug messages from dependency graph.
--debug-depsgraph-evalEnable debug messages from dependency graph related on evaluation.
--debug-depsgraph-buildEnable debug messages from dependency graph related on graph construction.
--debug-depsgraph-tagEnable debug messages from dependency graph related on tagging.
--debug-depsgraph-no-threadsSwitch dependency graph to a single threaded evaluation.
--debug-depsgraph-timeEnable debug messages from dependency graph related on timing.
--debug-depsgraph-prettyHabilitar colores para los mensajes de depuración de la gráfica de dependencias.
--debug-depsgraph-uidVerify validness of session-wide identifiers assigned to ID data-blocks.
--debug-ghostEnable debug messages for Ghost (Linux only).
--debug-wintabEnable debug messages for Wintab.
--debug-gpuEnable GPU debug context and information for OpenGL 4.3+.
--debug-gpu-force-workaroundsEnable workarounds for typical GPU issues and disable all GPU extensions.
--debug-gpu-compile-shadersCompile all statically defined shaders to test platform compatibility.
--debug-gpu-scope-captureCapture the GPU commands issued inside the give scope name.
--debug-gpu-renderdocEnable RenderDoc integration for GPU frame grabbing and debugging.
--debug-wmEnable debug messages for the window manager, shows all operators in search, shows keymap errors.
--debug-xrEnable debug messages for virtual reality contexts. Enables the OpenXR API validation layer, (OpenXR) debug messages and general information prints.
--debug-xr-timeEnable debug messages for virtual reality frame rendering times.
--debug-allEnable all debug messages.
--debug-ioEnable debug messages for I/O (Collada, …).
--debug-fpeEnable floating-point exceptions.
--debug-exit-on-errorImmediately exit when internal errors are detected.
--debug-freestyleEnable debug messages for Freestyle.
--disable-crash-handlerDisable the crash handler.
--disable-abort-handlerDisable the abort handler.
--verbose<nivel>Set the logging verbosity level for debug messages that support it.
-q,--quietSuppress status printing (warnings & errors are still printed).
Opciones de GPU¶
--gpu-backendForce to use a specific GPU backend. Valid options:
vulkan,metal,opengl.--gpu-compilation-subprocessesOverride the Max Compilation Subprocesses setting (OpenGL only).
--profile-gpuEnable CPU & GPU performance profiling for GPU debug groups (Outputs a profile.json file in the Trace Event Format to the current directory)
Opciones varias¶
--open-lastAbrirá el archivo .blend más recientemente usado, en vez del archivo de inicio predefinido.
--app-template<plantilla>Set the application template (matching the directory name), use
defaultfor none.--factory-startupOmitir la lectura del archivo
startup.blenden la carpeta de inicio del usuario.--enable-event-simulateEnable event simulation testing feature
bpy.types.Window.event_simulate.--env-system-datafilesSet the
BLENDER_SYSTEM_DATAFILESenvironment variable.--env-system-scriptsSet the
BLENDER_SYSTEM_SCRIPTSenvironment variable.--env-system-extensionsSet the
BLENDER_SYSTEM_EXTENSIONSenvironment variable.--env-system-pythonSet the
BLENDER_SYSTEM_PYTHONenvironment variable.-noaudioForce sound system to None.
-setaudioFuerza el sistema de audio a un dispositivo específico.
None(ninguno),Default(predefinido),SDL,OpenAL,CoreAudio,JACK,PulseAudiooWASAPI.-c,--command<comando>Run a command which consumes all remaining arguments. Use
-c helpto list all other commands. Pass--helpafter the command to see its help text.This implies
--backgroundmode.-h,--helpPrint this help text and exit.
/?Print this help text and exit (Windows only).
-r,--registerRegister blend-file extension for current user, then exit (Windows & Linux only).
--register-allusersRegister blend-file extension for all users, then exit (Windows & Linux only).
--unregisterUnregister blend-file extension for current user, then exit (Windows & Linux only).
--unregister-allusersUnregister blend-file extension for all users, then exit (Windows & Linux only).
-v,--versionImprime la versión de Blender y sale.
--End option processing, following arguments passed unchanged. Access via Python’s
sys.argv.
Otras opciones¶
--disable-depsgraph-on-file-loadBackground mode: Do not systematically build and evaluate ViewLayers” dependency graphs when loading a blend-file in background mode (
-bor-coptions).Scripts requiring evaluated data then need to explicitly ensure that an evaluated depsgraph is available (e.g. by calling
depsgraph = context.evaluated_depsgraph_get()).NOTE: this is a temporary option, in the future depsgraph will never be automatically generated on file load in background mode.
--disable-liboverride-auto-resyncDo not perform library override automatic resync when loading a new blend-file.
NOTE: this is an alternative way to get the same effect as when setting the
No Override Auto ResyncUser Preferences Debug option.--debug-gpu-vulkan-local-readForce Vulkan dynamic rendering local read when supported by device.
Procesamiento de los argumentos¶
Los argumentos deberá estar separados por espacios en blanco, p.ej:
blender -ba test.blend
…will exit since -ba is an unknown argument.
Orden de los argumentos¶
Arguments are executed in the order they are given. eg:
blender --background test.blend --render-frame 1 --render-output "/tmp"
…will not render to /tmp because --render-frame 1 renders before the output path is set.
blender --background --render-output /tmp test.blend --render-frame 1
…will not render to /tmp because loading the blend-file overwrites the render output that was set.
blender --background test.blend --render-output /tmp --render-frame 1
…works as expected.
Variables de entorno¶
- BLENDER_USER_RESOURCES:
Replace default directory of all user files. Other
BLENDER_USER_*variables override when set.- BLENDER_USER_CONFIG:
Directory for user configuration files.
- BLENDER_USER_SCRIPTS:
Directory for user scripts.
- BLENDER_USER_EXTENSIONS:
Directory for user extensions.
- BLENDER_USER_DATAFILES:
Directory for user data files (icons, translations, ..).
- BLENDER_SYSTEM_RESOURCES:
Replace default directory of all bundled resource files.
- BLENDER_SYSTEM_SCRIPTS:
Carpetas para agregar scripts adicionales.
- BLENDER_SYSTEM_EXTENSIONS:
Directory for system extensions repository.
- BLENDER_SYSTEM_DATAFILES:
Directory to replace bundled datafiles.
- BLENDER_SYSTEM_PYTHON:
Directory to replace bundled Python libraries.
- BLENDER_CUSTOM_SPLASH:
La ruta completa hasta una imagen que reemplazará a la imagen de la pantalla de bienvenida.
- BLENDER_CUSTOM_SPLASH_BANNER:
Ruta completa hasta una imagen que será sobreimpresa a la imagen de la pantalla de bienvenida.
- OCIO:
Ruta para redefinir el archivo de configuración de OpenColorIO.
- TEMP:
Store temporary files here (MS-Windows).
- TMPDIR:
Store temporary files here (UNIX Systems). The path must reference an existing directory or it will be ignored.