Skip to main content
Participant
October 31, 2023
質問

关于动作无法记录从剪切板粘贴文本到文本图层

  • October 31, 2023
  • 返信数 2.
  • 277 ビュー

我想通过脚本来实现

1 我已经复制了一个图层名称内容是文字   

2 复制好的图层名称粘贴到当前文本文本的样式和当前的图层一样的

このトピックへの返信は締め切られました。

返信数 2

Stephen Marsh
Community Expert
Community Expert
October 31, 2023

No need for copy/paste in a script.


1) Set a variable to capture the activeDocument.activeLayer.name

 

2) Set the text layer .contents as the variable from step 1

 

Working with text is difficult, a more advanced scripter than myself would be needed to retain existing text attributes as anything font/text related is often very complex as it generally relies on using Action Manager (AM) code and not DOM code.

 

Bojan Živković11378569
Community Expert
Community Expert
October 31, 2023

I am not sure what exactly you want to achieve, can you show us example?

 

It is possible to copy-paste using Photoshop action. I am not sure about style, do you mean layer style or effects? It must be done as separate action step I think.

 

If you want to write script (thats what translator says) then wait for scripters to see your request @c.pfaffenbichler @Stephen Marsh