parameters: (self)
docstring: Parses maps/textures and updates the textures array
          with any new nodes found.
docstring_summary: Parses maps/textures and updates the textures array
          with any new nodes found.
docstring_tokens: Parses maps / textures and updates the textures array with any new nodes found .
function: def _update_maps(self):
          """Parses maps/textures and updates the textures array
          with any new nodes found.
          """
          logger.debug("Material()._update_maps()")
  
          mapping = (
              (api.material.diffuse_map, constants.MAP),
              (api.material.specular_map, constants.SPECULAR_MAP),
              (api.material.light_map, constants.LIGHT_MAP)
          )
  
          for func, key in mapping:
              map_node = func(self.node)
              if map_node:
                  logger.info('Found map node %s for %s', map_node, key)
                  tex_inst = self.scene.texture(map_node.name)
                  self[key] = tex_inst[constants.UUID]
  
          if self[constants.TYPE] == constants.THREE_PHONG:
              mapping = (
                  (api.material.bump_map, constants.BUMP_MAP,
                   constants.BUMP_SCALE, api.material.bump_scale),
                  (api.material.normal_map, constants.NORMAL_MAP,
                   constants.NORMAL_SCALE, api.material.normal_scale)
              )
  
              for func, map_key, scale_key, scale_func in mapping:
                  map_node = func(self.node)
                  if not map_node: 
                      continue
                  logger.info("Found map node %s for %s", map_node, map_key)
                  tex_inst = self.scene.texture(map_node.name)
                  self[map_key] = tex_inst[constants.UUID]
                  self[scale_key] = scale_func(self.node)
function_tokens: def _update_maps ( self ) : logger . debug ( "Material()._update_maps()" ) mapping = ( ( api . material . diffuse_map , constants . MAP ) , ( api . material . specular_map , constants . SPECULAR_MAP ) , ( api . material . light_map , constants . LIGHT_MAP ) ) for func , key in mapping : map_node = func ( self . node ) if map_node : logger . info ( 'Found map node %s for %s' , map_node , key ) tex_inst = self . scene . texture ( map_node . name ) self [ key ] = tex_inst [ constants . UUID ] if self [ constants . TYPE ] == constants . THREE_PHONG : mapping = ( ( api . material . bump_map , constants . BUMP_MAP , constants . BUMP_SCALE , api . material . bump_scale ) , ( api . material . normal_map , constants . NORMAL_MAP , constants . NORMAL_SCALE , api . material . normal_scale ) ) for func , map_key , scale_key , scale_func in mapping : map_node = func ( self . node ) if not map_node : continue logger . info ( "Found map node %s for %s" , map_node , map_key ) tex_inst = self . scene . texture ( map_node . name ) self [ map_key ] = tex_inst [ constants . UUID ] self [ scale_key ] = scale_func ( self . node )