nutti / Screencast-Keys

Blender Add-on: Screencast Keys
GNU General Public License v3.0
1.27k stars 112 forks source link

Startup File and New Files #63

Closed CheeryLee closed 3 years ago

CheeryLee commented 3 years ago

Description about the feature
Following in the footsteps of https://github.com/nutti/Screencast-Keys/issues/25 . I did some changes to make screencast working in two cases: 1) automatically load at startup if the appropriate setting is on; 2) don't turn off screencast if new scene was loaded in the curent session

Are you willing to contribute about this feature. Yes, look at the pull request: https://github.com/nutti/Screencast-Keys/pull/62

Screenshots image Now the preferences has an option to enable automatic screencast loading

Additional comments How does it work? Clearly simple. We don't need to enable the screencast immediately. The main reason why we can't do that is bpy.context.area field is None at the moment of loading Blender. Instead of that we can make something like a co-routine that would be fired every frame of View3D until this field is right.