hello this is a really simple case, im creating a new window, i just want to do some operator in this window but unfortunately the context is still the old one.
bpy.context.area.ui_type = 'VIEW_3D' bpy.ops.screen.area_dupli('INVOKE_DEFAULT') bpy.ops.view3d.view_camera() #i want to do this operator in the new window bpy.context.space_data.lock_camera = True #i want to do this boolean change in the new window
i know that this code below
represent the new window, but i don’t know how how to use it properly in this situation
anyone have a solution ? i find all the context change and override documentation very week, both in the api doc, blender artist forum, and the stack.