I have data stored in local file and want to sync them to my custom collection property once the blender was started. But my collection is registed to the Scene
, it seems like only the parameter context
in operator can access and change my collection, and this requires user's clicking to invoking the operator.
What I have tried:
- Access my collection via the
context
inPanel
'sdraw(self, context)
, got:
AttributeError: Writing to ID classes in this context is not allowed: Scene, Scene datablock, error setting HotNodeProps.<UNKNOWN>
- Invoke my sync operator in the
register()
, got:
'_RestrictContext' object has no attribute 'view_layer'
Really don't have a way or a hack to do this?