One issue I'm having is specifically with the bpy.ops.object.hook_assign() method on a currently selected vertex.
mod_name = "Hook" + str(vertex_idx)
obj.modifiers.new(mod_name, type='HOOK')
obj.modifiers[mod_name].object = other_obj
bpy.ops.object.hook_assign(modifier=mod_name)
I am trying to tell blender which modifier in the stack to apply the operation to, but get the following message when I do it from the python console:
TypeError: Converting py args to operator properties: enum "Hook0" not found in ()
Has anyone had any experience with using hook_assign() at all? Sadly this functionality of hooking an object to another object's vertex is exactly what I need, and it isn't supported directly in the HookModifier
object API.