Custom rotation tool



  • Hi everyone

    I'm trying to create a tool with a special point rotation behavior on selected points.

    Which tool to build on?

    • BaseEventTool unselects all selected points when activated.
    • EditingTool does all its normal but unwanted things when dragging the mouse with points selected.

    Where to go from here? Thank you.


  • admin

    can you elaborate what you want to achieve with the special rotation behavior?

    you can build a custom tool and draw the selected points yourself:

    s = 5 ## / scale # in a tool you can get the scale value
    for x, y in CurrentGlyph().selection:
        oval(x-s, y-s, s*2, s*2)