Notifications
Clear all

[Closed] Transforming a vertex selection?

How would you go about appling a transformation (via formla) to each vertex of a selected poly object?

I have gotten it to work on a selection of objects but not at the sub object level.

Thanks in advance.

4 Replies
 xcx

vs = getVertSelection $
x = – do some calculation
y = – do some calculation
z = – do some calculation

for i in 1 to (vs.count) do
(
setVertSelection $ #{i}
move $.selectedVerts[x,y,z]
)

 xcx

Aarrr! Poly object. Sorry. Right back

 xcx

Oh! It works with polys as well. cool.

That is usual way for me. Loop all vertices and make move and calculations. Problem is than when you have lot of vertices there may come some memory issues. You can fix that by using gc() to free memory inside a loop what slowing down your script but wont crash it.

Cool thanks I will try it when I get home.

Thanks again XCX.