Argumentos de linha de comando¶
blender [args ...] [file] [args ...]Opções de renderização¶
-b,--backgroundExecuta em plano de fundo (algumas vezes, utilizado para renderização sem interface de usuário).
The audio device is disabled in background-mode by default and can be re-enabled by passing in
-setaudio Defaultafterwards.-a,--render-animRenderiza os quadros do início ao final (de maneira inclusiva).
-S,--scene<nome>Define a cena ativa pelo
<nome>para renderização.-f,--render-frame<frame>Render frame
<frame>and save it.+<frame>quadro relativo inicial,-<frame>quadro relativo final.Uma lista de frames separada por vírgulas também pode ser utilizada (sem espaços).
Um espaço de frames pode ser expresso usando o separador
..entre o primeiro e o último frame (de maneira inclusiva).
-s,--frame-start<frame>Define o quadro inicial para
<quadro>, suporta o uso de +/- adicionalmente para quadros relativos.-e,--frame-end<frame>Define o quadro final para
<frame>, suporta o uso de +/- adicionalmente para quadros relativos.-j,--frame-jump<frames>Define o número de quadros a ser intercalados em salto após cada um dos quadros renderizados.
-o,--render-output<caminho>Define o caminho de renderização e o nome de arquivo. Use
//no início do caminho para renderizações relativas ao arquivo Blender.You can use path templating features such as
{blend_name}in the path. See Blender’s documentation on path templates for more details.Os caracteres
#são substituídos pelos números dos quadros, e usados para a definição de anexações de zeros.animation_##_test.pngse tornaanimation_01_test.pngtest-######.pngse tornatest-000001.png
When the filename does not contain
#, the suffix####is added to the filename.O número do frame será adicionado ao final do nome de arquivo, por exemplo:
blender -b animation.blend -o //render_ -F PNG -x 1 -a
//render_se torna//render_####, escrevendo os quadros como//render_0001.png-E,--engine<engine>Specify the render engine. Use
-E helpto list available engines.-t,--threads<tarefas>Use amount of
<threads>for rendering and other operations [1-1024], 0 to use the systems processor count.
Cycles Render Options¶
Cycles add-on options must be specified following a double dash.
--cycles-device<device>Set the device used for rendering. Valid options are:
CPUCUDAOPTIXHIPONEAPIMETAL.Append +CPU to a GPU device to render on both CPU and GPU.
Example:
blender -b file.blend -f 20 -- --cycles-device OPTIX
--cycles-print-statsLog statistics about render memory and time usage.
Opções de formato¶
-F,--render-format<formato>Set the render format. Valid options are:
TGARAWTGAJPEGIRISPNGBMPHDRTIFF.Formats that can be compiled into Blender, not available on all systems:
OPEN_EXROPEN_EXR_MULTILAYERFFMPEGCINEONDPXJP2WEBP.-x,--use-extension<valor booleano (0 ou 1)>Define a opção de adicionar as extensões de arquivos no final dos mesmos.
Opções para reprodução das animações¶
-a<opções><arquivo(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).Playback Arguments:
-p<sx><sy>Abre com a lateral inferior esquerda em
<sx>,<sy>.-mLê a partir do disco (Não utiliza buffer).
-f<fps><fps_base>Especifica uma quantidade de quadros por segundo (qps) com a qual iniciar.
-j<frame>Define o passo de quadros para
<quadro>.-s<frame>Reproduz a partir do
<quadro>.-e<frame>Reproduz até o
<frame>.-c<cache_memory>Amount of memory in megabytes to allow for caching images during playback. Zero disables (clamping to a fixed number of frames instead).
Opções para a janela do aplicativo¶
-w,--window-borderForce opening with borders, in a normal (non maximized) state.
-M,--window-maximizedAbertura de forçada maximizado.
-W,--window-fullscreenForce opening full-screen.
-p,--window-geometry<sx><sy><w><h>Abre com a lateral inferior esquerda em
<sx>,<sy>e com a largura e altura como definido em<w>,<h>.-con,--start-consoleComece com a janela do console aberta (ignored if
-bis set), (somente Windows).--no-native-pixelsNão utiliza o tamanho de pixeis nativos, para monitores de alta resolução (Usado nos modelos MacBook com tela
Retina).--no-window-frameDisable all window decorations (Linux only).
--no-window-focusOpen behind other windows and without taking focus.
Opções para a linguagem Python¶
-y,--enable-autoexecEnable automatic Python script execution.
-Y,--disable-autoexecDisable automatic Python script execution (Python-drivers & startup scripts), (default).
-P,--python<filepath>Executa o arquivo de script Python fornecido.
--python-text<nome>Executa o bloco de texto de script Python fornecido.
--python-expr<expressão>Executa a expressão fornecida como um script Python.
The expression may be a complete multi-line script; you are limited only by the platform’s maximum argument length.
--python-consoleExecuta o Blender com um console de linha de comando interativo.
--python-exit-code<code>Defina o código de saída em [0..255] para sair se uma exceção Python for levantada (somente para scripts executados a partir da linha de comando), zero desabilita.
--python-use-system-envAllow Python to use system environment variables such as
PYTHONPATHand the user site-packages directory.--addons<addon(s)>Comma separated list (no spaces) of add-ons to enable in addition to any default add-ons.
Network Options¶
--online-modeAllow internet access, overriding the preference.
--offline-modeDisallow internet access, overriding the preference.
Opções de Logging¶
--log<match>Enable logging categories, taking a single comma separated argument.
--log "*": everything--log "event": every category starting withevent.--log "render,cycles": both render and cycles messages.--log "*mesh*": every category containingmeshsub-string.--log "*,^operator": everything except operators, with^prefixto exclude.--log-level<level>Set the logging verbosity level.
fatal: Fatal errors only error: Errors only warning: Warnings info: Information about devices, files, configuration, operations debug: Verbose messages for developers trace: Very verbose code execution tracing
--log-show-memoryShow memory usage for each log message.
--log-show-sourceShow source file and function name in output.
--log-show-backtraceMostrar um back trace para cada mensagem de log (apenas para depuração).
--log-file<filepath>Set a file to output the log to.
--log-list-categoriesList all available logging categories for
--log, and exit.
Opções de depuração¶
-d,--debugHabilita a depuração.
Habilita a detecção de erros de memória
Inabilita a opção de agarrar com o mouse (para interação com um depurador em alguns casos)
Mantém a «sys.stdin» do Python ao invés de defini-la como None
--debug-value<value>Permite definir o valor de depuração especificado em
<valor>durante a inicialização.--debug-eventsHabilita as mensagens de depuração para o sistema de eventos.
--debug-handlersHabilita as mensagens de depuração para a manipulação de eventos.
--debug-libmvHabilita as mensagens de depuração a partir da biblioteca «libmv».
--debug-memoryHabilita a alocação de memória plenamente protegida e sua depuração.
--debug-jobsHabilita o perfilamento de tempo para as tarefas em plano de fundo.
--debug-pythonHabilita as mensagens de depuração para a linguagem Python.
--debug-depsgraphHabilita as mensagens de depuração a partir do gráfico de dependências.
--debug-depsgraph-evalHabilitar mensagens de debug do gráfico de dependência relacionadas à avaliação.
--debug-depsgraph-buildHabilita as mensagens de depuração a partir do gráfico de dependências.
--debug-depsgraph-tagHabilita as mensagens de depuração a partir do gráfico de dependências.
--debug-depsgraph-no-threadsAlterna o gráfico de dependências para uma avaliação de única tarefa (mono-processada).
--debug-depsgraph-timeHabilitar mensagens de debug do gráfico de dependência relacionado ao tempo.
--debug-depsgraph-prettyHabilitar cores para mensagens de depuração de gráficos de dependência.
--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-shader-debug-infoEnable shader debug info generation (Vulkan only).
--debug-gpu-scope-captureCapture the GPU commands issued inside the give scope name.
--debug-gpu-shader-sourceSave the compiled GPU shader source code for the given shader name. The given name can contain leading or trailing wildcard «*» to match multiple shaders. Files are saved in the current working directory inside a directory named «Shaders».
--debug-gpu-shader-no-preprocessorSkip preprocessor pass and rely on driver or shader compiler preprocessor instead. Also disable dead code elimination.
--debug-gpu-shader-no-dceSkip dead code elimination pass.
--debug-gpu-no-texture-poolDisable memory aliasing optimizations in the GPU texture pool.
--debug-gpu-renderdocEnable RenderDoc integration for GPU frame grabbing and debugging.
--debug-gpu-vulkan-local-readForce Vulkan dynamic rendering local read when supported by device.
--debug-wmHabilita mensagens de debug para o gerenciador de janelas, mostra todos os operadores em busca, mostra erros de mapa de teclas.
--debug-xrEnable debug messages for virtual reality contexts. Enables the OpenXR API validation layer, (OpenXR) debug messages and general information prints.
--debug-xr-timeHabilitar mensagens de debug para tempos de renderização de frames de realidade virtual.
--debug-allHabilita todas as mensagens de depuração.
--debug-ioEnable debug messages for I/O.
--debug-fpeEnable floating-point exceptions.
--debug-exit-on-errorImmediately exit when internal errors are detected.
--debug-freestyleHabilita as mensagens de depuração para o renderizador Freestyle.
--disable-crash-handlerDesabilita o manipulador para quebras («crash handler»).
--disable-abort-handlerDesabilita o manipulador para encerramento de operações.
--verbose<verbose>Set the logging verbosity level for debug messages that support it.
-q,--quietSuppress status printing (warnings & errors are still printed).
GPU Options¶
--gpu-backendForce to use a specific GPU backend. Valid options:
vulkan,metal,opengl.--gpu-vsyncSet the VSync. Valid options are:
on,off&autofor adaptive sync.The default settings depend on the GPU driver.
Disabling VSync can be useful for testing performance.
autois only supported by the OpenGL backend.
--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)
Opções diversas¶
--open-lastOpen the most recently opened blend file, instead of the default startup file.
--app-template<template>Set the application template (matching the directory name), use
defaultfor none.--factory-startupSkip reading the
startup.blendin the users home directory.--enable-event-simulateEnable event simulation testing feature
bpy.types.Window.event_simulate.--env-system-datafilesDefine a variável de ambiente
BLENDER_SYSTEM_PYTHON.--env-system-scriptsDefine a variável de ambiente
BLENDER_SYSTEM_PYTHON.--env-system-extensionsSet the
BLENDER_SYSTEM_EXTENSIONSenvironment variable.--env-system-pythonDefine a variável de ambiente
BLENDER_SYSTEM_PYTHON.-noaudioForça o sistema de áudio para nenhum (NULL).
-setaudioForce sound system to a specific device.
NoneDefaultSDLOpenALCoreAudioJACKPulseAudioWASAPI.-c,--command<command>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,--helpImprime este texto de ajuda e encerra.
/?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).
--qos<level>Set the Quality of Service (QoS) mode for hybrid CPU architectures (Windows only).
default: Uses the default behavior of the OS. high: Always makes use of performance cores. eco: Schedules Blender threads exclusively to efficiency cores.
-v,--versionImprime a versão do Blender e encerra.
--Encerra o processamento das opções, e os argumentos seguintes são passados inalterados. O acesso pode ser feito via Python através da lista
sys.argv.
Other Options¶
--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-ffmpegEnable debug messages from FFmpeg video input and output.
--debug-cyclesHabilita as mensagens de depuração do renderizador Cycles.
Passagem de argumentos¶
Argumentos devem ser separados por espaços em branco, por exemplo:
blender -ba test.blend
…will exit since -ba is an unknown argument.
Ordem dos argumentos¶
Os argumentos são executados na ordem em que são fornecidos, por exemplo:
blender --background test.blend --render-frame 1 --render-output "/tmp"
…não irá renderizar para a pasta /tmp pois a opção --render-frame 1 renderiza antes do caminho de saída ser definido.
blender --background --render-output /tmp test.blend --render-frame 1
…não irá renderizar para a pasta /tmp pois o carregamento do arquivo Blender irá sobrescrever a saída de renderização que foi previamente definida.
blender --background test.blend --render-output /tmp --render-frame 1
…funciona como esperado.
Variáveis de ambiente¶
- BLENDER_USER_RESOURCES:
Replace default directory of all user files. Other
BLENDER_USER_*variables override when set.- BLENDER_USER_CONFIG:
Diretório para arquivos de configuração do usuário.
- BLENDER_USER_SCRIPTS:
Diretório para scripts de usuário.
- BLENDER_USER_EXTENSIONS:
Directory for user extensions.
- BLENDER_USER_DATAFILES:
Diretório para arquivos de dados do usuário (ícones, traduções, etc…)
- BLENDER_SYSTEM_RESOURCES:
Replace default directory of all bundled resource files.
- BLENDER_SYSTEM_SCRIPTS:
Directories to add extra scripts.
- 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:
Full path to an image that replaces the splash screen.
- BLENDER_CUSTOM_SPLASH_BANNER:
Full path to an image to overlay on the splash screen.
- BLENDER_OCIO:
Path to override the OpenColorIO configuration file. If not set, the
OCIOenvironment variable is used.- SPNAV_SOCKET:
The socket path to connect to the 3D-mouse daemon (Unix only).
- 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.