outliner visibility not binded to bpy.context.object.hide_viewport #77844
Labels
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#77844
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: Linux-5.7.2-zen1-1-zen-x86_64-with-glibc2.29 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 440.82
Blender Version
Broken: version: 2.83.0, branch: makepkg (modified), commit date: 2020-06-03 14:38, hash:
211b6c29f7
Worked: (newest version of Blender that worked as expected)
Short description of error
outliner visibility not binded to bpy.context.object.hide_viewport
Exact steps for others to reproduce the error
clicking the "eye" icon of an object in the Outliner shows "bpy.context.object.hide_viewport = True" in the info panel.
But in PythonTerminal the output is:
False
Also not possible to make it visible again with bpy.context.object.hide_viewport = False.
Seems like bpy.context.object.hide_viewport is not connected to the Outliner icon at all.
Added subscriber: @Lendo
#82743 was marked as duplicate of this issue
Added subscriber: @lichtwerk
API wise you can use
object.hide_set
andobject.hide_viewport
https://docs.blender.org/api/master/bpy.types.Object.html?#bpy.types.Object.Object.hide_set
I am a bit confused about how this is logged/presented in the UI, will check on this...
Added subscriber: @iss
Changed status from 'Needs Triage' to: 'Archived'
bpy.context.object.hide_viewport
corresponds toObject Properties > Visibility > Show in > Viewports
not to "eye" icon in outliner.Changed status from 'Archived' to: 'Needs Triage'
But:
hide_viewport
from python will also toggle the "Monitor" icon in the Outliner.object.hide_viewport
object.hide_viewport
I'd say there is at least something very unexpected going on that needs clarification.
@iss: do you know more? [will also check code now...]
Hmm that sounds off indeed. I triaged this report in very narrow scope.
Added subscriber: @ChristopherAnderssarian
Added subscriber: @fcoelho.9
Added subscriber: @ideasman42
Submitted D10028: Fix #77844: Expose 'ViewLayer.object_bases' to RNA/Python API to resolve this bug.
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @povmaniac, @erik85
Added subscriber: @mont29
This report is fairly old, current tooltips for the 'eye' icon do not reference
object
at all.So I think further discussion regarding whether we should expose this to python or not is somewhat out of scope from a bug report? Afaict current code behave as expected here...
While the code is functioning as intended.
The reported RNA-data path is still invalid in 2.93/master, toggling visibility shows this in the info space:
bpy.context.scene.hide_viewport = False