Edinson Molina
Edinson Molina
> Sorry but I can't help you directly. Though this happened to me too (including the code working only once), and I worked around it by simply [importing](https://loonghao.github.io/photoshop-python-api/examples/#import-image-as-layer) the new...
> @Edimo05 You can try to add `r` in the file path, to ensure the code use raw path > > ``` > desc.putPath(idnull, r"G:\BLEBLE\BLABLABLA\BLABLABLA\BLABLABL\BLABLA\2022\August\Images\09.jpeg") > ``` @loonghao I tried...
@loonghao I tried this code (https://loonghao.github.io/photoshop-python-api/examples/#replace-images) but I cannot import examples._psd_files. I already installed photoshop_python_api.
> Have you tried to look at #174? What's missing in your code is setting the active layer: `ps.active_document.activeLayer = layer`. Maybe that'll work. @blunderedbishop I tried change my code...
> @Edimo05 ArtLayers is a list, you need artLayer + index to access it > > ``` > doc.ArtLayers["08"] > ``` > > ```python > with Session() as ps: >...
> @Edimo05 > > ``` > doc.ArtLayers.getByName("08") > ``` > > `ArtLayers` first letter lowercase > > ``` > doc.artLayers.getByName("08") > ``` @loonghao nothing man, same error: Traceback (most recent...
> @Edimo05 replace image only support ArtLayer as a smart object layer  > > Please convert the 08 layer as a smart-object first and then execute the following code...