It depends on your application but you should be able to pass the data source (full path to raster or raster object) to the GP tool as an alternative to the layer name. More of a workaround than a solution.
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.