I am trying to create a tool to move a spline like outline command so when i drag the spline with mouse all vertices move like that.
here’s my script
tool OutlineOffset ( local fs, copSpl, closedFlag, knot_n on mousePoint click do coordsys grid ( if click == 1 then ( spl=$ copSpl=copy spl convertToSplineShape copSpl closedFlag=(isClosed copSpl 1) knot_n=numKnots copSpl 1 print copSpl ) if click == 3 then ( applyOffset copSpl (length gridDist) /* Code to delete unwanted and recreate spline */ #stop ) ) on mouseMove click do ( -- applyOffset copSpl (length gridDist) --doesn't work here ) )
applyOffset does not show result interactively
splineOps.startOutline does get activated in mouse click events
this must be done before if anyone know.
this is what i want with mouse drag