bpy script: Unable to set base_path of a Node object of type CompositorNodeOutputFile #103554

Closed
opened 2022-12-30 06:11:56 +01:00 by Heidi Hu · 6 comments

System Information
Operating system: Linux-5.15.0-56-generic-x86_64-with-glibc2.35 64 Bits
Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.60.11

Blender Version
Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: 55485cb379
Worked: (newest version of Blender that worked as expected)

Short description of error
After created and initialized a new Node of type CompositorNodeOutputFile, I can't set the new node's base_path with either relative or absolute path. Suppose bpy script has the absolute path /home/home/heidi/blender_code. I want to save the generated normal png in the folder /home/home/heidi/blender_code/output/normal. But when I set the relative path to //output, Blender saves the normal images to the folder /home/home/heidi/blender_code/output/home/home/heidi/blender_code/output/normal.
The same result happens when I set base_path to the absolute path, i.e., /home/home/heidi/blender_code/output.

Exact steps for others to reproduce the error

bpy.context.scene.view_layers["ViewLayer"].use_pass_normal = choice
render_layers = bpy.context.scene.node_tree.nodes["Render Layers"]
normal_file_output = bpy.context.scene.node_tree.nodes.new(type="CompositorNodeOutputFile")
normal_file_output.label = 'Normal Output'
normal_file_output.name = 'Normal Output'
bpy.context.scene.node_tree.links.new(render_layers.outputs['Normal'], normal_file_output.inputs[0])
tree.nodes["Normal Output"].base_path = "//output"
**System Information** Operating system: Linux-5.15.0-56-generic-x86_64-with-glibc2.35 64 Bits Graphics card: NVIDIA GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 525.60.11 **Blender Version** Broken: version: 3.4.1, branch: blender-v3.4-release, commit date: 2022-12-19 17:00, hash: `55485cb379` Worked: (newest version of Blender that worked as expected) **Short description of error** After created and initialized a new Node of type `CompositorNodeOutputFile`, I can't set the new node's base_path with either relative or absolute path. Suppose bpy script has the absolute path `/home/home/heidi/blender_code`. I want to save the generated normal png in the folder `/home/home/heidi/blender_code/output/normal`. But when I set the relative path to `//output`, Blender saves the normal images to the folder `/home/home/heidi/blender_code/output/home/home/heidi/blender_code/output/normal`. The same result happens when I set base_path to the absolute path, i.e., `/home/home/heidi/blender_code/output`. **Exact steps for others to reproduce the error** ```lang=py bpy.context.scene.view_layers["ViewLayer"].use_pass_normal = choice render_layers = bpy.context.scene.node_tree.nodes["Render Layers"] normal_file_output = bpy.context.scene.node_tree.nodes.new(type="CompositorNodeOutputFile") normal_file_output.label = 'Normal Output' normal_file_output.name = 'Normal Output' bpy.context.scene.node_tree.links.new(render_layers.outputs['Normal'], normal_file_output.inputs[0]) tree.nodes["Normal Output"].base_path = "//output" ```
Author

Added subscriber: @heidi_hu

Added subscriber: @heidi_hu

Added subscriber: @mod_moder

Added subscriber: @mod_moder

I tested by simply setting the path to the path value for the node. Everything works. Please try to be more specific about your steps to reproduce the issue. Add descriptions, starting at the default cube...

I tested by simply setting the path to the path value for the node. Everything works. Please try to be more specific about your steps to reproduce the issue. Add descriptions, starting at the default cube...
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:16 +01:00
Philipp Oeser added the
Interest
VFX & Video
label 2023-02-10 11:36:36 +01:00
Member

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-02-20 13:03:48 +01:00
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
No Assignees
4 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#103554
No description provided.