I have such code
(
arrVert = (vert_sel=(polyOp.getVertSelection $.baseobject) as array) -- array of vertices
polyOp.createPolygon $ arrVert
)And created face only from 3 vertices, and I would like to make a polygon from vertices selection >3.
Forum topic · General Scripting
By Nikolay Litvinov · 2013-07-31
I have such code
(
arrVert = (vert_sel=(polyOp.getVertSelection $.baseobject) as array) -- array of vertices
polyOp.createPolygon $ arrVert
)And created face only from 3 vertices, and I would like to make a polygon from vertices selection >3.
Comments (8)
Comment policy
I found a script (on this site) that does it
.
Why you don't want to use Cap Poly? This is the easies method.
creates polygon on oject. See the attached image.
Don't use bitarray to store the selected verts. In bitarray the verts are sorted from the lower to higher vert index.
To use polyOp.createPolygon to create face from 4 verts, you have to store the selected verts in an array, where the verts are sorted in proper order. See the image - did you see the verts indexes and how I sort the verts in the array that is passed to polyOp.createPolygon. The verts order is essential when you wants to create 4 sided polygon.
Okay, I agree with you. It is better to use the cap. Thank you
I know about cap
But
dont create polygon on oject (works with only isolate vertex)
Attachments
.
Creating polygon from four verts see the attached image.
Attachments
How to create vertices
How do you create vertices without the mesh?
You have to have a mesh. Create a plane, convert it to mesh, delete all verts and you will have an empty mesh and can start adding verts where you want.
If class of object == editable_mesh or editable_poly then \
Enable sub-object vertex ➜ go to righr-panel settings ➜ Create ➜ pick to viewport for create vertices