While this addon is a great addition, i would like to point out that the chosen keymap is sadly conflicting with the basic functionality of Blenders loop selection, specifically the extend loop selection functionality, as it also is mapped on the same keys.
I was wondering why i suddenly had issues, as whenever i tried to select an edge loop add further edge loops to my selection, the first loop would go haywire. Essentially only after some time through the usage of continuous work with the repeat function and then using F9, i found the culprit.
The function to âAlign Verts to Grease Pencilâ is mapped to the Shift dbl-Left Mouse, which also adds to selections in case you use loop selections. After temporarily switching the addon function off, all worked fine again.
My suggestion would be to please find a better key mapping for that function or make it based on a condition, as i had no grease pencil drawing when the function gave me trouble.
I pushed a fix to github now. Alt+Doubleclick Right Mouse is now the default hotkey, and I added a preference toggle in case you donât want to use the default.
Hi there, long time no see ^^
I made some tiny fix on the addon. The shortcut should works.
Also added customisation in addon preferences to change mouse button and key modifier.
I created a pull request that @VolantKnave has to review and accept to merge theses change in his repository.
I just wanted to report that I have had troubles installing the addon .
When I selected the __init__.py file to install the addon, it never appeared in the Preferences > Addons list.
But when I renamed the __init__.py file to AlignSelectionToGreasePencil.py it worked.
Maybe you might want to give the python file its own name (for example AlignSelectionToAnnotationStroke.py or AlignSelectionToGreasePencil.py) to avoid this kind of problem for other users.
Thank you.
EDIT : @pullup kindly explained me in PM why I encountered problems to install the __init__.py file.
It seems that I directly downloaded the __init__.py file from the Github repository.
But to download the addon properly, I should have downloaded the whole repository instead (downloading the ZIP file).
@VolantKnave : Maybe you could update the README.md file (on your Github repository) with a note, informing users that they have to download the ZIP file?
Or perhaps, you could simply rename the __init__.py file to AlignSelectionToGreasePencil.py or AlignSelectionToAnnotationStroke.py
The requirement to press a hotkey (ALT + double LMB click) at the end (and for each annotation line), slows down the workflow considerably.
My suggestion:
The add-on could have, in the N panel, a ASTAS tab (acronym for âAlign Selection To Annotation Strokeâ)
In this tab, there would be a "Start and a âStopâ button** and here is how it would work:
The user selects some edges (edge loop, shortest path, or manually selecting edges, whateverâŚ)
The user clicks on the âStartâ button
The user draws an Annotation line
As soon as this Annotation line is drawn (when the LMB click is released) the addon performs the action to move the selected edges to the Annotation line.
At this point, if the user enabled âClear Strokes on Executeâ in the addon preferences, the annotation line would disappear (which is quite convenient).
Then the user could select other edges and draw another annotation line (elsewhere)⌠and so onâŚ
Finally, the user would click on the âStopâ button, on the ASTAS tab
This new âStartâ button would inform the add-on that the next annotation line should move the previously selected edges⌠automatically.
The idea is cool, personnally I dont âalignâ much stuff as Iâm not a modeler but I understand the need of faster interaction.
I wonât have time to code this but hope someone got interested in the idea.
I have something to say about the UI proposal though :
Maybe instead of adding a new tab that can clutter the tabs even more ( @xan2622) the trigger button can be added just under the annotation UI-list in the already existing View > Annotations.
This way it falls in a related category without taking much space.