Maniphest T73615

Info window reports non existent python commands for Cycles data
Confirmed, NormalKNOWN ISSUE

Assigned To
None
Authored By
michael campbell (3di)
Feb 5 2020, 6:05 PM
Tags
  • BF Blender
  • User Interface
  • Cycles
  • Render & Cycles
  • Python API
  • Papercut
Subscribers
Bastien Montagne (mont29)
michael campbell (3di)
Philipp Oeser (lichtwerk)

Description

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: rB2142288eae73
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):

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)

Event Timeline

michael campbell (3di) created this task.Feb 5 2020, 6:05 PM
michael campbell (3di) updated the task description.
michael campbell (3di) updated the task description.Feb 5 2020, 6:07 PM
Philipp Oeser (lichtwerk) changed the task status from Needs Triage to Confirmed.Feb 5 2020, 7:55 PM
Philipp Oeser (lichtwerk) added projects: User Interface, Cycles, Add-ons (BF-Blender).
Philipp Oeser (lichtwerk) changed the subtype of this task from "Report" to "Known Issue".
Philipp Oeser (lichtwerk) added subscribers: Bastien Montagne (mont29), Philipp Oeser (lichtwerk).

Can confirm, T68050: 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 T68050#848508, @Bastien Montagne (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 (lichtwerk) renamed this task from Info window reports non existent python commands to Info window reports non existent python commands for Cycles data.Feb 5 2020, 7:56 PM
Brecht Van Lommel (brecht) added a project: Render & Cycles.Jun 18 2020, 6:15 PM
Campbell Barton (campbellbarton) edited projects, added Python API; removed Add-ons (BF-Blender).Jun 19 2020, 9:31 AM
Campbell Barton (campbellbarton) moved this task from Backlog to Papercuts on the Python API board.Jun 19 2020, 10:00 AM
Campbell Barton (campbellbarton) added a project: Papercut.
Julian Eisel (Severin) moved this task from Backlog to Known Issues on the User Interface board.Jun 26 2020, 6:11 PM