Code: Select all
// Script to toggle FREEHAND SELECTION (crawling ants)
tv_GetActiveShape
ActiveShape = result
IF CMP(ActiveShape,"freehandline")
tv_SetActiveShape SELECTFREEHAND SMOOTH 3 AALIASING 1 KEEP 0 SUBPIXEL 3 OPTIMIZE 1
ELSE
// here I need the George syntax to CLEAR the selected shape like the shortcut command - Key:Shape Select: Clear
tv_SetActiveShape FREEHANDLINE SMOOTH 3 AALIASING 1 KEEP 0 SUBPIXEL 3 OPTIMIZE 1 DISPLAY 0
END
Sven
===============================================================================
EDIT: Actually, The single toggle-button script works as-is with a little extra effort:
1. run the script first time to initiate SELECTFREEHAND MODE, then draw selected area(s).
2. now, select any other tool or process that you want to use in the selected area(s)
3. run script a second time to re-initiate SELECTFREEHAND MODE and, using Right Mouse Button, draw around all selected area(s)... which removes the previous selection.
4. with the selected area(s) gone, choose any other tool or process and resume drawing.
Still it would be useful to have a George command to script what Key:Shape Select: Clear now does.