aturtur / cinema4d-scripts

My collection of Cinema 4D scripts
387 stars 53 forks source link

AR_Selection tools (hotkey-able?) #6

Closed pokeslog closed 2 years ago

pokeslog commented 2 years ago

I tried creating hotkeys for the AR_Selection tools which would be useful when selecting maybe a Sweep in the Viewport, then using a hotkey for AR_SelectDown to go into the Sweep hierarchy, then AR_SelectNext to select the spline to edit in the viewport. It doesn't seem to work.

The only way it sort of works is if I move my mouse over the Object Manager and then use the hotkeys to use AR_SelectDown. But then it's a bit confusing because AR_SelectNext (or Prev) doesn't work with the hotkeys as I would think. I can just use AR_SelectDown (or SelectUp) continuously to select the object above or below. Moving my mouse away from the object in the viewport is obviously not efficient and i might as well just use the buttons on a palette.

aturtur commented 2 years ago

Hi, what Cinema 4D version are you using? At least in Cinema 4D 2023.1.0 you can use hotkeys when the mouse cursor is over the viewport and the scripts works correctly.

Some selection scripts uses keyboard modifiers (e.g. shift, ctrl): Shift adds to the current selection and Ctrl removes from the selection. This is universal in most of the applications. If you have binded hotkey with a shift or ctrl it triggers keyboard modifier feature in the script. If you do not want to use script's keyboard modifier features you have disable them by modifying the script.

pokeslog commented 2 years ago

I have 2030.0.1. I'm using ALT-Down (arrow) for AR_SelectDown. ALT-Right (arrow) for AR_SelectNext, and so on. Maybe the arrow keys themselves are messing it up. I'll try playing around with different hotkeys to see if I can get it to work.

Thanks for making ALL of these scripts. The community appreciates everything you do!

aturtur commented 2 years ago

Ok! That is actually very good hotkey system what you described. The reason why the script is not working for you right now is that the script is not assuming that the user would press the ALT key. The keyboard modifier handling is now blocking it from working. I'll fix this in the next update to all selection scripts. It'll take some time since I'm going to release a couple of new scripts and tweaking some of the old ones. I want to realease everything at the same time.

Also thanks for the kind words.

pokeslog commented 2 years ago

ahh good to know!!!! Thanks for such quick reponses!

aturtur commented 2 years ago

This is now fixed in AR_Scripts_1.70