def build_options_menu( self ):
   pmc.setParent( menu = True )
   
   menu = pmc.menu( label = 'Options', allowOptionBoxes = True )
   
   pmc.menuItem( label = 'Set xNormal Location',
                 command = self.set_xn_location )
   
   pmc.menuItem( divider = True )
   
   enable = utils.get_bake_normals( )
   if enable == None:
     utils.set_bake_normals( True )
     enable = True
   pmc.menuItem( label = 'Bake Normal Map',
                 cb = enable,
                 command = pmc.CallbackWithArgs( self.map_cbx_callback,
                                                 'normal' ) )
   enable = utils.get_bake_ao( )
   if enable == None:
     utils.set_bake_ao( False )
     enable = False
   pmc.menuItem( optionBox = True )
   pmc.menuItem( label = 'Bake Ambient Occlusion Map',
                 cb = enable,
                 command = pmc.CallbackWithArgs( self.map_cbx_callback,
                                                 'ao' ) )
   pmc.menuItem( optionBox = True )
 def do_bake_layer( self, layer ):
   """
   Bake the bake layer.  Gets some settings from the xml settings file saved
   in prefs, then passes them to the utils function
   """
   print layer
   utils.bake_layer( layer,
                                bake_ao = utils.get_bake_ao( ),
                                bake_normals = utils.get_bake_normals( ) )