blender -P not fully implemented, or buggy & context.render() needs window #1655

Closed
opened 2004-10-15 19:59:15 +02:00 by Chris Want · 3 comments

Group: current SVN version
Resolution: Fixed
Category: Python

%%%The -P flag does not really work very well.
I'm not entirely sure what it was designed to
do, but as implemented it seems to merely
act as an alternative to an 'On Load'
script link. Using the -P flag brings up
the user interface which seems to defeat the
purpose of being a 'batch mode' thing.
I can use the -b flag to explicitely
run in batch mode, which is kind of
a pain because then I also have to
specify a blend file. Still, with -b, I run
into trouble when I run context.render() ,
for example, because the scene render module
seems to depend on a render window being open.
context.render() also seems to be of limited use
for this purpose, since while it does render
an image, it doesn't save it. It might be
good to have an optional argument to this
function to save the render to a file, as
specified by the other attribures of the render
scene context. The workaround for this is to use
the context.renderAnim() function, which always
saves a file, and use this to render a one frame
animation (this still suffers from the weakness
of needing a render window though). Grep-ing
for G.background might yeild some clues as
to how to better implement a batch mode
processor, since this is the flag that the

  • b mode uses to suppress rendering to a
    render window.

Thank you for taking the time to read this,
Chris
%%%

**Group**: current SVN version **Resolution**: Fixed **Category**: Python %%%The -P flag does not really work very well. I'm not entirely sure what it was designed to do, but as implemented it seems to merely act as an alternative to an 'On Load' script link. Using the -P flag brings up the user interface which seems to defeat the purpose of being a 'batch mode' thing. I can use the -b flag to explicitely run in batch mode, which is kind of a pain because then I also have to specify a blend file. Still, with -b, I run into trouble when I run context.render() , for example, because the scene render module seems to depend on a render window being open. context.render() also seems to be of limited use for this purpose, since while it does render an image, it doesn't save it. It might be good to have an optional argument to this function to save the render to a file, as specified by the other attribures of the render scene context. The workaround for this is to use the context.renderAnim() function, which always saves a file, and use this to render a one frame animation (this still suffers from the weakness of needing a render window though). Grep-ing for G.background might yeild some clues as to how to better implement a batch mode processor, since this is the flag that the - b mode uses to suppress rendering to a render window. Thank you for taking the time to read this, Chris %%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

This task was automatically closed as archived as part of migration, because the project or tracker this task belonged to is no longer active.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#1655
No description provided.