Workspaces API / DOC hard to use or broken #79358

Closed
opened 2020-07-29 03:52:28 +02:00 by Maurice Raybaud · 4 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Quadro FX 2800M/PCIe/SSE2 NVIDIA Corporation 3.3.0

Blender Version
Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-07-26 20:02, hash: blender/blender@04195b1e74
Worked: possibly always / never

Addon Information
Name: Workspace manipulation example / error?
Author: Maurice Raybaud

Short description of error
Attempted script does switch a few editor types through Python, as requested. But other types get changed to new ones only in the header rolldown button, while the rest of the area keeps the old types. Documentation did not show enough examples, from what I could find, so I may have done only a lot of stupid things, the point would then be to ask for added clues, (I am unclear about the different levels purpose between area / spaces...region? /... Another question is : how do we set read only variables such as area.space.width?

If the explanation is indeed nowhere, maybe it could be added, for instance in Area.type docs...?

Exact steps for others to reproduce the error
povWorkspace.py
Provided sample povWorkspace.py file, to be launched in a terminal with blender --python povWorkspace.py

Using factory default blend file.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Quadro FX 2800M/PCIe/SSE2 NVIDIA Corporation 3.3.0 **Blender Version** Broken: version: 2.90.0 Beta, branch: master, commit date: 2020-07-26 20:02, hash: `blender/blender@04195b1e74` Worked: possibly always / never **Addon Information** Name: Workspace manipulation example / error? Author: Maurice Raybaud **Short description of error** Attempted script does switch a few editor types through Python, as requested. But other types get changed to new ones only in the header rolldown button, while the rest of the area keeps the old types. Documentation did not show enough examples, from what I could find, so I may have done only a lot of stupid things, the point would then be to ask for added clues, (I am unclear about the different levels purpose between area / spaces...region? /... Another question is : how do we set read only variables such as area.space.width? If the explanation is indeed nowhere, maybe it could be added, for instance in Area.type docs...? **Exact steps for others to reproduce the error** [povWorkspace.py](https://archive.blender.org/developer/F8727128/povWorkspace.py) Provided sample povWorkspace.py file, to be launched in a terminal with blender --python povWorkspace.py Using factory default blend file.
Author
Member

Added subscriber: @MauriceRaybaud

Added subscriber: @MauriceRaybaud

Added subscriber: @brecht

Added subscriber: @brecht

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

Changed status from 'Needs Triage' to: 'Archived'
Brecht Van Lommel self-assigned this 2020-07-29 11:57:44 +02:00

Please use devtalk.blender.org for improvement suggestions or questions on how to use the API, we don't do this in the bug tracker.
https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

Please use devtalk.blender.org for improvement suggestions or questions on how to use the API, we don't do this in the bug tracker. https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests
Sign in to join this conversation.
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-addons#79358
No description provided.