Solved! Go to Solution.
def updateParameters(self): if self.params[0].value: list = [] lstFields = arcpy.ListFields(str(self.params[0].value)) for field in lstFields: list.append(field.name) list.remove(str(self.params[1].value)) self.params[2].filter.list = list return
def updateParameters(self): if self.params[0].value: list = [] mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] for layer in arcpy.mapping.ListLayers(mxd, "", df): list.append(layer.name) list.remove(str(self.params[0].value)) stringFilter = self.params[1].filter stringFilter.list = list return
def updateParameters(self): if self.params[0].value: list = [] lstFields = arcpy.ListFields(str(self.params[0].value)) for field in lstFields: list.append(field.name) list.remove(str(self.params[1].value)) self.params[2].filter.list = list return