Tekitoumen opened this issue on Jun 22, 2022 ยท 6 posts
Tekitoumen posted Wed, 22 June 2022 at 3:11 AM
Hi! I have a quesution.
I want to transform the model by changing the vertices of the mesh.
Not just the GUI, I want to transform the model by changing the vertices of the mesh.
Is it possible to control the coordinates of the model mesh with a python program?
If you know, please tell me.
Thank you.
FVerbaas posted Thu, 23 June 2022 at 1:04 PM Forum Coordinator
Yes a Python script can change the coordinates of a vertex.
Do not forget to force a redraw once you're done moving them, or there will be no visible effect. Also tag the object as 'changed'. Python bypasses all this.
Tekitoumen posted Wed, 29 June 2022 at 9:38 PM
Thank you!
Tekitoumen posted Thu, 30 June 2022 at 7:18 PM
Excuse me, do you know which method is used to change the coordinates of the vertices of the mesh? Geometry Methods correct?
FVerbaas posted Sat, 02 July 2022 at 5:21 PM Forum Coordinator
Vertex methods.
From the top of my head: mygeom.Vertices(i).SetX(newX,newY, newZ)
Remember coordinates are defined in PNU units for zero pose in world space.
There used to be a set of example scripts: geomods
Tekitoumen posted Sun, 03 July 2022 at 7:06 PM