Forum: Poser Python Scripting


Subject: Moving individual verticies with Python Script..can it be done?

Josiah opened this issue on Oct 28, 2002 ยท 7 posts


Josiah posted Wed, 30 October 2002 at 10:28 AM

Ockham, thanks for your help on this, I appreciate it! You certainly know your stuff! Yes I think that would work, but it would be a lot of trouble for a lazy person like me to line up a very small box with a single vertex in 3D space. Also, when you would zoom in or out with the camera, the size of the box would appear to change size because you are closer or further away from it. Thats why I was hoping to keep the box a fixed depth away from the camera, then you could zoom in and align it with a vertex in 2D space and it could then look along the Z axis until it returns a vertex position. However I couldn't find a way to keep a prop a certain distance away from the front of the current camera. Your idea is great, the best yet, I just wish there where a little easier or faster way to select a vertex. I wonder why CL didn't incorperate vertex movement with "soft selection"? Magnets are hard to work with big time! As far as searching for the nearest vertex closet to the origin, couldn't we take and add or subtract one from each coordinate? This would be 26 positions to sort. However the number to look at would grow exponentially as the positions away increased, but I don't think thats a problem. I think you would have to have an array of the verts of the current body part, and the the box origin could be compared with each and return the closest vert index. The only way I can think to indicate to the user which vertex is selected, would be the vert number displayed on the dialog somewhere. The softselection idea is not that far fetched either, but thats off in the future maybe.