Das Script ist ok, braucht also nicht getestet werden
Habe das Script mal soweit angepasst das man die Marker auch gleich mit reduzuieren kann, sonst ist das Script ja unbrauchbar.
Das Script ist nur eine Notlösung, also mal eben so zusammen gebastelt.
[lua]-- Author:Rasterbar
-- Name:spline marker
-- Description: fast and dirty!
-- Icon:
-- Hide: no
local markerDist = 10; -- distance beetwen marker
local angDiff = 0.2; -- 0 = no remove, angle diff to remove marker
local mTG1 = getSelection(0);
local spline = getChildAt(mTG1, 0);
local splineLen = getSplineLength(spline);
local splinePoint = markerDist/splineLen;
local splinePos = 0.0;
local lastPos = 0.0;
local tempRY = 0.0;
while splinePos <= 1.0 do
local rX, rY, rZ = getSplineOrientation(spline, splinePos, 0, 1, 0);
if lastPos > 0 then
local tY = math.abs(math.deg(rY-tempRY));
if tY >= angDiff then
local pX, pY, pZ = getSplinePosition(spline, splinePos);
print(pX);
print(pY);
print(pZ);
end
tempRY = rY;
else
lastPos = 1;
end
splinePos = splinePos + splinePoint;
end
local sc = getSplineNumOfCV(spline)-1;
local lpX, lpY, lpZ = getSplineCV(spline, sc);
print(lpX);
print(lpY);
print(lpZ);
[/lua]