Just out of curiosity, what exactly are you making the pivot do? Isn't setting a pivot on a vertex just a matter of holding d (pivot mode) and v (vertex snap) and middle clicking over the vertex you want?
@Bal: Making a tool to simplify placing pivots. So for example if you want it at bottom left just click bottom left and pivot is there and can also do mass pivot moves. Wanted selected vertex for meshes where they arent square otherwise I would just use the bounding box.
Hey been working on a pivot tool for maya just so it makes it easier to put the pivot easier for common areas. I have that all up and running though where I'm running into a problem is putting the pivot on a selected vertex. I get the xform of the vertex but my problem is how would I split the selection array. Example:…
Bit late to the party here but going from the problem in the initial post -- if for some reason you need to get the object name when all you have is the vertex name (e.g. "pSphere1.vtx[300]") then you can do that with just a bit of string manipulation. string $vertName = "pSphere1.vtx[300]"; string $objName = `match…