parameters: (proxy)
return_statement: return None
docstring: Given a light proxy, find which view it belongs to
docstring_summary: Given a light proxy, find which view it belongs to
docstring_tokens: Given a light proxy find which view it belongs to
function: def GetViewForLight(proxy):
      """Given a light proxy, find which view it belongs to"""
      # search current views for this light.
      for cc in range(proxy.GetNumberOfConsumers()):
          consumer = proxy.GetConsumerProxy(cc)
          consumer = consumer.GetTrueParentProxy()
          if consumer.IsA("vtkSMRenderViewProxy") and proxy in consumer.AdditionalLights:
              return consumer
      return None
function_tokens: def GetViewForLight ( proxy ) : # search current views for this light. for cc in range ( proxy . GetNumberOfConsumers ( ) ) : consumer = proxy . GetConsumerProxy ( cc ) consumer = consumer . GetTrueParentProxy ( ) if consumer . IsA ( "vtkSMRenderViewProxy" ) and proxy in consumer . AdditionalLights : return consumer return None