Update data problem

Hello, I want to know if there is any better way to update data. I need to implement an operation now, that is, update once after changing the 3D view. I tried without entering the mode

bpy.msgbus.subscribe_ RNA (key = (bpy. Types. Regionview3d, ‘perspective_matrix’), owner = owner, args = (), notify = perspective matrix,)

But this doesn’t seem to work

你好,我想知道有没有什么比较好的更新数据的方式,我现在需要实现一个操作,就是改变3D视图后就更新一次,在不进入模态的情况下,我试过
bpy.msgbus.subscribe_rna(key=(bpy.types.RegionView3D, ‘perspective_matrix’),owner=owner,args=(),notify=透视矩阵,)
但是这个似乎不起做用