I am learning Python right now for ArcGIS Pro. I'm new to object-oriented programming and need some help on understanding the statement order. I'm basically looking for a simple logic breakdown for order of statements. For example:
aprx = arcpy.mp.ArcGISProject("CURRENT")
If I'm reading this correctly, a direct translation is:
variable = object.function(parameters)
So, the current project is a parameter of the function ArcGISProject being called on the object arcpy.mp, which will be stored in the variable aprx?
What about this:
m = aprx.activeMap
activeMap is a method called on the now object aprx and stored in the variable m?
lyrList = m.listLayers()
the listLayer function is being called on the now object m and stored in the variable lyrList?
And this:
for lyr in lyrList:
if lyr.isFeatureLayer:
a for-loop. It reads if a layers in the lyrList is a feature layer it gets stored as Boolean (T/F) in lyr?