API object.hide_render flag and its relation to collection visibility inconsistent #58823
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#58823
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Arch Linux
Graphics card: GTX 970
Blender Version
Broken: blender-2.80-26d5a3625ed-linux-glibc224-x86_64
Short description of error
According to https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Scene_and_Object_API#View_Layer_.26_Collection
This seems to suggest that (when having a single collection and some object in it) setting the collection to hidden for rendering should hide the object for rendering as well. But when I disable the collection for rendering I still get the object's value for
obj.hide_render
and notTrue
.Or am I misinterpreting the release notes?
Exact steps for others to reproduce the error
See attached scene. Cube is visible for render, but its parent collection is not. Checking the
hide_render
flag of Cube givesFalse
, while I would expectTrue
.Added subscriber: @PaulMelis
collections.blend
Added subscriber: @brecht
Changed status from 'Open' to: 'Archived'
object.hide_render
does not tell you if the object is hidden, it only returns the value of the property as set by the user. This is the same as in 2.7x.To find out which objects are visible in the render, you can loop over
depsgraph.object_instances
.