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 Open Smart Object; #273

Closed
kkgg0521 opened this issue Jul 11, 2023 · 6 comments
Closed

How to Open Smart Object; #273

kkgg0521 opened this issue Jul 11, 2023 · 6 comments

Comments

@kkgg0521
Copy link

kkgg0521 commented Jul 11, 2023

No description provided.

@kkgg0521
Copy link
Author

How to open a smart object in my PSD?

@lzzkey
Copy link

lzzkey commented Aug 16, 2023

I have similar problems. I need to use ps to change the pictures in the smart layer in batches and export them, but I can't find a way to operate the smart layer in the document.

@kkgg0521
Copy link
Author

def openSmartObject(self): a = ps.Application().stringIDToTypeID("placedLayerEditContents") d = ps.ActionDescriptor() ps.Application().executeAction(a, d)
hello i Solved this problem on my own

@lzzkey
Copy link

lzzkey commented Aug 17, 2023

Thank you very much. I have succeeded in using your plan. Thank you.

@wangxshuai
Copy link

def openSmartObject(self): a = ps.Application().stringIDToTypeID("placedLayerEditContents") d = ps.ActionDescriptor() ps.Application().executeAction(a, d)
hello i Solved this problem on my own

前辈你这个问题帮助了我很多,我还有一些问题想请教,我现在想在你的解决方法的基础上,替换新打开的智能对象中文字,我现在打开智能对象后就不知道该如何去操作了,情不能指教一下,非常感谢!

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 ?

@PcAlien
Copy link

PcAlien commented Mar 16, 2024

Mhh.. that is not working for me. Photoshop complains (translated):
The command "" is not available"
Any ideas?

@kkgg0521 kkgg0521 closed this as completed Jun 4, 2024
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

4 participants