# How to reset hook position

The image above shows a simple hook modifier setup with the hook object (the empty) moved. At the end of the line there is a small black dot denoting the rest position of the object. How can I get the empty back there?

Note: The options "reset" and "recenter" both don't accomplish what I want. Reset will put the object back into it's original state without moving the hook. Recenter will put the origin of the hook to the 3D cursor, but once again not move it.

Why do I want this? Well, I have an object rigged with hooks that has already been transformed and don't want to change the rig by changing the rest positions of the hooks. It seems like the rest positions are not centered around the hooked vertices so selecting the geometry and placing the hook there is not an option :(

• If I understand you correctly you want to get the position of the hook centre. I looked into the source and unfortunately the variable HookModifierData { .. float cent[3]; ..  for the hook centre is not exposed as a RNA property. My guess is that it is not yet possible without a very minor patch to blenders source code. Actually just 4 lines of code will do the trick. Ill probably provide a patch to the blender tracker. – user2859 May 14 '14 at 18:46
• Diff available here https://developer.blender.org/D529. – user2859 May 14 '14 at 23:42
• Wow, applied the patch and I can clear the hook location using Python :) Thank you! – Gottfried Hofmann May 15 '14 at 12:46
• Cool, can't guarantee the patch gets into trunk though. Might be best to poke one of the core devs first. Regarding your question on the tracker.. have a look at trunk/blender/release/scripts/startup/bl_operators. You would need to add a new file(module) and add the name to __init__.py's _modules. – user2859 May 15 '14 at 16:28
• The patch has been applied by Campo and will be part of Blender 2.72 - thank you again for your efforts! – Gottfried Hofmann Jun 23 '14 at 16:09