Hi Guys, I allready got a great support from the Forum!!! Im working on a Conform Script right know which I plan to use as a modifier. The Problem at the moment ist that the Plane Projection creates strange placing of my vertices. Basicly I search for the three enarest Vertices fro every vertice in my Object. Then I make a Point Projection on theSurface.
fn checkNearestEdge SelectedVerticeID =
(
oV = SelectedVerticeID.pos
pairs = for o in refObj.selectedVerts collect #(length(o.pos-oV), o.index ) --pairs distance and vertexpos
qsort pairs sortByDist --indexes and sorts
x0 = polyop.getVert refObj pairs[1][2]
x1 = polyop.getVert refObj pairs[2][2]
x2 = polyop.getVert refObj pairs[3][2]
offset = 0.01
x0 = x0 + [0,0,offset]
x1 = x1 + [0,0,offset]
x2 = x2 + [0,0,offset]
print "go"
print SelectedVerticeID.pos
print x0
print x1
print x2
newVert = pointPlaneProj x2 x1 x0 SelectedVerticeID.pos
moveVertices SelectedVerticeID.index newVert
)
-------------------------
fn pointPlaneProj pA pB pC pD = (
local nABC=normalize (cross (pB-pA) (pC-pA))
newPoint = pD+((dot (pA-pD) nABC)*nABC)
return newPoint
)
LAOMUSIC ARTS · 2025-08-03