Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Replace Smart Layer Text with a Script #307

Open
wangxshuai opened this issue Sep 22, 2023 · 0 comments
Open

How to Replace Smart Layer Text with a Script #307

wangxshuai opened this issue Sep 22, 2023 · 0 comments

Comments

@wangxshuai
Copy link

Here I have a psd file, i want to replace the text in the smart layer

I have completed half of the script with the help of other issus and documents

import photoshop.api as ps
App = ps.Application()
doc = App.load('*.psd')

a = App.stringIDToTypeID("placeLayerEditContents")
b = ps.ActionDscriptor()
App.executeAction(a,b)

now I open the smart object, but i have no idea to change the text in the opened smart object, how to seleted the opened smart object layer,? And how to change the text in the opened smart object layer ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant