I'm having a hard time symbolizing a raster from a Layer file.
rasterPath = r"......\DEM\slopeoutput1"
rasterLayerName = 'slopeoutput12'
SlopeSymbology1 = ".....\SlopeAnalysis\HeatSlope.lyr"
md = arcpy.mapping.MapDocument(mxdpath)
df = arcpy.mapping.ListDataFrames(md)[0]
arcpy.MakeRasterLayer_management(rasterPath, rasterLayerName)
arcpy.mapping.Layer(rasterLayerName)
arcpy.ApplySymbologyFromLayer_management(rasterLayerName, SlopeSymbology1)
md.save()
I can get this to work in the python window but then when i run it as a script it doesnt apply the Symbology.