Notifications
Clear all
[Closed] Mouse tool undo problem
Jun 14, 2022 5:43 am
Hi, I’m trying to build a mouse tool but can’t figure out why undo doesn’t work after releasing mouse tool.
tool mouseTest
(
local pixelUnit = (1.0 / gw.getWinSizeX())
on mousePoint clickNo do
(
if clickNo > 2 do
(
#stop
)
)
on mouseMove clickNo do
(
local val = abs (pixelUnit * mouse.screenPos.x)
if val < 0 then
(
val = 0.0
)
else
(
if val > 1.0 do (val = 1.0)
)
print val
$.EditablePoly.setEdgeData 1 val
)
)
startTool mouseTest prompt:"start.."