Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This scripts gets the values of bounding box information of an object and makes you able to move its pivot point to that bounding box's specific points. (corners, min and max values in any exis).
1) The first frame in UI is for corners. Imagine you are looking in top view in maya; buttons refer to corners from top view.
2) Second tab is for min max values of bounding box. CP = center pivot; WO = World orbit.
3) IF you select a vertex of THE OBJECT, you can move pivot to this vertex by clicking "Snap to this Vertex!" button. If you select multiple vertices, it will move the pivot to their average center.
4) You can also save current position of the pivot (World Space). Then you can go back to that position by clicking ">" next to the button you have assigned. there are 6 buttons, so you can save only 6 different positions for any object in THAT SCENE.