I am drafting a panel to set options for an operator. I gave the operator a property, which I figured I could expose to be set via the panel, but it appeared read-only / locked / frozen / unchageable:
After a lot of searching, lots of tabs opened, some hair and sanity lost and the beginning of a question was drafted, I stumbled upon this thread which shed some light on why:
An example given in that thread puts a reference to the PropertyGroup that has the operator options shared by the operator itself and the panel as a property of bpy.types.WindowManager
(accessed via bpy.context.window_manager
); the same approach as a much older Blender SE QA.
A tutorial on Medium that appears highly-ranked in search results stores properties under bpy.types.Scene
instead.
Things can change over time, but old results linger. Q: Is stashing properties/options somewhere accessible to both the operator and the panel still the preferred approach in 2023? If so, is the WindowManager or the Scene preferred?
Cheers!