Info window reports non existent python commands for Cycles data #73615

Open
opened 2020-02-05 18:05:04 +01:00 by michael campbell · 4 comments

System Information
Operating system: Windows-10-10.0.17134-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86

Blender Version
Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-01-30 11:04, hash: 2142288eae
Worked: (optional)

Short description of error
Info window reports non existent python commands, for example when enabling material cryptomatte by clicking on it in the UI this is reported in the info window:

bpy.context.scene.use_pass_crypto_material = True

Should be this:

bpy.context.view_layer.cycles.use_pass_crypto_material = True

tooltip shows this (which is useless at the best of times thanks to it being shortened):

image.png

suggested code results in :

AttributeError: 'Scene' object has no attribute 'use_pass_crypto_object'

How can we ensure the correct information is being shown in the info? Perhaps also a good idea to stop shortening the pyrhon commands in the tooltip. Shift f1 would also be good to use to take the user to the relevant index of pages in the online API documentation.

I think you should consider throwing some paid work at Cristian Hasbun to get the coding interface up to scratch. He did a presentation at this years conference, the WEED integrated IDE. He's not been able to put much work into it recently due to financial obligations (had to take a job as a kite surfing instructor)

**System Information** Operating system: Windows-10-10.0.17134-SP0 64 Bits Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.86 **Blender Version** Broken: version: 2.83 (sub 2), branch: master, commit date: 2020-01-30 11:04, hash: `2142288eae` Worked: (optional) **Short description of error** Info window reports non existent python commands, for example when enabling material cryptomatte by clicking on it in the UI this is reported in the info window: bpy.context.scene.use_pass_crypto_material = True Should be this: bpy.context.view_layer.cycles.use_pass_crypto_material = True tooltip shows this (which is useless at the best of times thanks to it being shortened): ![image.png](https://archive.blender.org/developer/F8323659/image.png) suggested code results in : AttributeError: 'Scene' object has no attribute 'use_pass_crypto_object' How can we ensure the correct information is being shown in the info? Perhaps also a good idea to stop shortening the pyrhon commands in the tooltip. Shift f1 would also be good to use to take the user to the relevant index of pages in the online API documentation. I think you should consider throwing some paid work at Cristian Hasbun to get the coding interface up to scratch. He did a presentation at this years conference, the WEED integrated IDE. He's not been able to put much work into it recently due to financial obligations (had to take a job as a kite surfing instructor)

Added subscriber: @3di

Added subscriber: @3di
Member

Added subscribers: @mont29, @lichtwerk

Added subscribers: @mont29, @lichtwerk
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'
Member

Can confirm, blender/documentation#68050 (Online Manual / Online Python reference fails for anything related to CyclesRenderSettings) is tightly related.

Path generation is sometimes tricky (can fail for nodes in certain situations as well).
For now though, I will keep the reports isolated to Cycles data, see this comment also:

In blender/documentation#68050#848508, @mont29 wrote:
..., this is a current limitation of the system, Cycles data is generated through python API, i.e. those are not 'real' RNA structures. Addressing this issue will require design and development work.

Can confirm, blender/documentation#68050 (Online Manual / Online Python reference fails for anything related to CyclesRenderSettings) is tightly related. Path generation is sometimes tricky (can fail for nodes in certain situations as well). For now though, I will keep the reports isolated to Cycles data, see this comment also: > In blender/documentation#68050#848508, @mont29 wrote: > ..., this is a current limitation of the system, Cycles data is generated through python API, i.e. those are not 'real' RNA structures. Addressing this issue will require design and development work.
Philipp Oeser changed title from Info window reports non existent python commands to Info window reports non existent python commands for Cycles data 2020-02-05 19:56:16 +01:00
Philipp Oeser removed the
Interest
Render & Cycles
label 2023-02-09 14:01:29 +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
2 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#73615
No description provided.