loonghao / photoshop-python-api

Python API for Photoshop.
https://loonghao.github.io/photoshop-python-api/
MIT License
643 stars 74 forks source link

how to convert a layer to smartObject #374

Open noahxinhao opened 3 weeks ago

noahxinhao commented 3 weeks ago

hi i try to repleace a image for a layer, but the layer image cant repleace. then i change the layer to smartObject. i found the layer can repleace when i do this. but i cant find a api to change a layer to smartObject. how can i do to convert a layer to smartObject by code?