I am new to ArcGIS Pro and to Python Programming. I recently made a python script intended to iteratively add raster layer to my 3D scene, then generate a TIFF and remove the raster layer and move on to the next iteration. When I run the script, ArcGIS Pro crashes. I have no idea how to proceed further. Any help will be much appreciated. I attached the python script to this message, for your reference.