Hi PaQ, yup this is pretty easy to do now since a couple of betas ago I added some stuff so that scripts could access an object's bounding box.
Take the attached file CenterAtOrigin.js and copy it to your v2's \commands sub-folder.
Then set up a keyboard shortcut with CenterAtOrigin (note, no .js at the end, and no script: at the start, just that plain name) as the command part and that should do it.
Please let me know if it does not work for you.
- Michael
EDIT: Updated attachment to new version that centers object at the cplane origin if there is a custom cplane set, otherwise at world origin.
|