nutti / Screencast-Keys

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

Other workspaces #69

Closed Etheria closed 3 years ago

Etheria commented 3 years ago

Screencast keys works great but only for the "Layout" workspace. I was unable to see it in any of the other screens. I especially would like to see it enabled for the Animation workspace to make tutorials for students of animation. I have tested changing the offset but it doesn't apppear Are you willing to contribute about this feature. (Yes/No)
I would help if I could but I can't. 2021-08-31_01-12_Blender

Screenshots [Optional]
It is good to understand the features if you attach the screenshotsfile.

Additional comments [Optional]

nutti commented 3 years ago

Thanks for your suggestion.

@CheeryLee

Sorry for mentioning you here. But it may help me a lot from your knowledge. Do you have any ideas to solve this issue? I'm going to fix this issue by referring your previous PR.

Etheria commented 3 years ago

Thank you for your attention. I have no knowledge of coding but I do know that screencast keys worked on all screen layouts in Blender 2.79 if that helps. Although I was told that Blender code for 2.8+ is very different.

CheeryLee commented 3 years ago

Hmm, as far as I remember I made a small addon that works in every 3D View spaces that were opened on the screen at the same moment. But I haven't tested it with layouts. I'll take a look and provide some additional info a bit later.

nutti commented 3 years ago

@Etheria

Thanks for your information. I'm not sure why Blender 2.8+ does not work, but it is a good point to inspect this issue.

@CheeryLee

It helps me a lot. Thanks.

CheeryLee commented 3 years ago

I didn't go deeper, but it may be helpful. There need to be get_origin method in SK_OT_ScreencastKeys class changed, more precisely what gonna be returned from it. Again, you can add your draw function via bpy.types.SpaceView3D.draw_handler_add to run in every SpaceView3D.

Look at my repo: https://github.com/CheeryLee/blender_collection_path/blob/master/show_collection_path.py The idea is pretty simple.

image

nutti commented 3 years ago

@CheeryLee

Thanks! From your tips, I understood the cause of the issue. If Origin option is Area or Region, the displayed key and mouse will be disappeared. But this issue can be workaround by changing Origin option to Window or Cursor.

@Etheria

I think this comes from the Origin option. Does your requirement achieve by changing Origin option to Window or Cursor? Or, execute Set Origin button after changing the workplace.

Etheria commented 3 years ago

Oh yes indeed! I'm so sorry for not noticing that button. It works fine now. Thank you to both of you for this revelation.

On Thu, 2 Sept 2021 at 13:32, nutti @.***> wrote:

@CheeryLee https://github.com/CheeryLee

Thanks! From your tips, I understood the cause of the issue. If Origin option is Area or Region, the displayed key and mouse will be disappeared. But this issue can be workaround by changing Origin option to Window or Cursor.

@Etheria https://github.com/Etheria

I think this comes from the Origin option. Does your requirement achieve by changing Origin option to Window or Cursor? Or, execute Set Origin button after changing the workplace.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nutti/Screencast-Keys/issues/69#issuecomment-911626292, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH7Q5J64P64ERBGSNG7HJ3T75VFFANCNFSM5DC6F2EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

nutti commented 3 years ago

It was a good news.

I will close this issue for now. If you face with the other issues, feel free to open new one.

@CheeryLee

Thanks for your advice!

Etheria commented 3 years ago

Awesome, thanks!

On Thu, 2 Sep 2021, 22:10 nutti, @.***> wrote:

It was a good news.

I will close this issue for now. If you face with the other issues, feel free to open new one.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nutti/Screencast-Keys/issues/69#issuecomment-912059512, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABH7Q5MYBVR4XQ2BPCKNJXDT77R3TANCNFSM5DC6F2EQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.