I have asked this question a while back but within arcgis environment without using addin. Now i am trying to do the same task to get pixel value when user click anywhere on screen, to use in later steps. Following pythonaddin button code snippet returns nothing. Any suggestions where is the catch?
class Val(object): """Implementation for Pythonaddin_addin.genW (Button)""" def __init__(self): self.enabled = True self.checked = False def onClick(self): geog = arcpy.GetParameterAsText(0) ras = arcpy.PointToRaster_conversion(geog, "ID", "in_memory/ras", "MAXIMUM", "",30) pass