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…
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:…
for example: a poly -sm 12 filterExpand will only return objects if an object is selected. If using your pSphere1.vtx[300] selection as an example... nothing will be returned if that object is not in object mode. filterExpand will return an array.. depending on your selection you may need to use the -expand "true" flag to…