#NEWLINE# def doOptions( input_prefix , input_suffix , input_locatorScale ) : #NEWLINE# #INDENT# 'This is the function called when the apply or create button is clicked' #NEWLINE# try : #NEWLINE# #INDENT# utils . dg . validateSelection ( type = 'transform' , min = 1 ) #NEWLINE# prefix = cmds . textFieldGrp ( input_prefix , q = True , tx = True ) #NEWLINE# suffix = cmds . textFieldGrp ( input_suffix , q = True , tx = True ) #NEWLINE# if ( ( len ( prefix ) == 0 ) and ( len ( input_locatorScale ) == 0 ) ) : #NEWLINE# #INDENT# OM . MGlobal . displayWarning ( 'A prefix or a suffix is required in order to ensure the newly created parent names will be unique. Using _xForm suffix.' ) #NEWLINE# suffix = '_xForm' #NEWLINE# #UNINDENT# scale = cmds . floatSliderGrp ( input_locatorScale , q = True , v = True ) #NEWLINE# cmds . am_insertParents ( pre = prefix , suf = suffix , scale = ( scale , scale , scale ) ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# raise