def doOptions(input_pelvis, input_hipAimAxis, input_hipFrontAxis, input_pelvisAimAxis, input_pelvisFrontAxis):
	try:
		# validate selection
		selection = utils.dg.validateSelection(type='transform', msg='Please select your hip object and then the twist object to constrain.', exact=2)
		
		# validate pelvis
		pelvis = cmds.textFieldGrp(input_pelvis, q=True, tx=True)
		utils.dg.verifyNode(pelvis)
		
		# create the hip constraint
		cmds.am_hipConstraint(
			selection[1],
			pelvisObject = pelvis,
			hipObject = selection[0],
			ha=cmds.floatFieldGrp(input_hipAimAxis, q=True, v=True), 
			hf=cmds.floatFieldGrp(input_hipFrontAxis, q=True, v=True), 
			pa=cmds.floatFieldGrp(input_pelvisAimAxis, q=True, v=True), 
			pf=cmds.floatFieldGrp(input_pelvisFrontAxis, q=True, v=True))
	except: raise
Specifies the function called when the apply or create button is clicked
dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/amTools/rigging/hipConstraint.py/doOptions