Hello,
I've created a python toolbox that allows a user to select geometries on a map as input to the tool. It works, except even after assigning a value as I am here, when I run the tool it still has a dropdown of map layers with none selected by default. Am I doing something wrong in assigning the value of the parameter?
input_parcels = arcpy.Parameter(
name='input_parcels',
displayName='Input Parcels',
datatype='GPFeatureRecordSetLayer',
parameterType='Required',
direction='Input'
)
aprx = arcpy.mp.ArcGISProject('Current')
mp = aprx.listMaps('Map')[0]
lyr = mp.listLayers('parcel_shapefiles')[0]
input_parcels.value = lyr