well...what about:
- loop through all of the vertices, averaging their position (so you get the center of the visible geometry)
- than call "positionmesh sphere, -averageX,-averageY,-averageZ" to center the visible geometry on 0,0,0 (but w/o repositioning the entities pivot)
- and then call "positionentity sphere, averageX,averageY,averageZ" to move your entity to the averaged position.
that should move the pivot to the center of your visible geometry... :)
- loop through all of the vertices, averaging their position (so you get the center of the visible geometry)
- than call "positionmesh sphere, -averageX,-averageY,-averageZ" to center the visible geometry on 0,0,0 (but w/o repositioning the entities pivot)
- and then call "positionentity sphere, averageX,averageY,averageZ" to move your entity to the averaged position.
that should move the pivot to the center of your visible geometry... :)