Notifications
Clear all

[Closed] Flatten selected verticles in Editable Mesh

hello
i’m trying to modify this script to make selected verticles flat on Z axis in EditableMesh

unfortunately replacing polyop with meshop do not work
could anyone suggest solution please?

(
sel=polyop.getvertselection $
for i in sel do
(
pos=polyop.getvert $ i
polyop.setvert $ i [pos.x,pos.y,0]
)
)
2 Replies
(

	sel= getvertselection $
	for i in sel do
	(
		pos = getvert $ i
		setvert $ i [pos.x,pos.y,0]
	)
	update $
)

thank you!