I have used the ‘ModalTimerOperator’ a few times in the past, starting with the ‘blueprint’ from ‘Templates’. Today, I needed to use it again but this time I wrote it from memory first. I defined it as
class MYMOD_OT_timer(bpy.types.Operator) , to be consistent with naming conventions, gave it
bl_idname = “mymod.timer” and in code I called it with
bpy.ops.mymod.timer() . And it was working fine. Then I checked my version against the ‘blueprint’ and realized that I should have used
bl_idname = “wm.mymod_timer” and called it with
So, now I am confused. It works either way and I do not know the difference between the two versions.
Could you please help me understand the difference so that I may use the correct version?