ScriptSpot

Forum topic · General Scripting

how to move faces in epoly?

By linmin9 · 2009-05-03

Description

In maxscript, I want to move sub faces some distance, Like select some faces in Epoly, then click Move or Rotate or Scale button to transform, In Maxscript help, I can only find Polyop.MoveVert for move verts, and Node.pos which is only for move Node not for sub-objects. Can anybody give a hint where to find functions about transforming sub-objects?

Comments (4)

Anubis · 2009-05-04

As I know, there no that function but you can use different method - get vertices from selected polygon and use build-in function for vertices.

linmin9 · 2009-05-04

right, that what I thought at beginning, have to get vertexs from face selection. and use vertex function to do face transform, it is still hard that way. kind of werld, they don't provide faces transform function while there is bottons for that task in UI, sub-obj transform is such a regular task of edit poly and script people can live well along without this?

Anubis · 2009-05-03

If faces you want to move is selected use:
move $.selectedFaces [Point3]

-- next code will move selectedFaces +5 by Z
move $.selectedFaces [0,0,5]

linmin9 · 2009-05-04

thanks for picking it out from script doc. and what about rotate or scale faces? I think there should be functions group for all method of transforming sub-objects instead of putting move-faces function alone in facelist collection class.