【问题标题】:Illustrator to Photoshop scrriptIllustrator 到 Photoshop 脚本
【发布时间】:2020-07-24 18:32:17
【问题描述】:

我找到了一个 Illustrator 脚本,我想在 Photoshop 中使用它,因为这两个软件都是由同一家公司制作的,只要稍作改动就不会出现任何问题。 我想将 illustrator 中的对象方法转换为 Photoshop 中的选择方法,但我在 Photoshop 脚本文档中找不到任何适当的引用,任何帮助将不胜感激。我正在使用扩展脚本来调试和编写代码。

function getDefFill(){
	defObj = activeDocument.selection;
	if (defObj.typename == "SpotColor")
	{
		defObj = activeDocument.defaultFillColor.spot.color;
	}
	if(defObj.typename=="RGBColor"){
		return(defObj.red+","+defObj.green+","+defObj.blue);
	}
	else
	if(defObj.typename=="CMYKColor"){
			return( defObj.cyan+","+defObj.magenta+","+defObj.yellow+","+defObj.black);
	}
		else{
			alert(defObj.typename+" not understood");
			return ("0,0,0,0");}
}

【问题讨论】:

  • 您认为您可以使用 Illustrator 脚本是 Photoshop 只是因为它们是由同一家公司制作的,这是非常错误的。你不能。
  • @SergeyKritskiy 有没有办法将上述脚本转换为可在 Photoshop 中使用的 b?
  • 这个脚本应该做什么?

标签: javascript selection photoshop adobe-illustrator extendscript


【解决方案1】:

您可以通过以下链接浏览 Photoshop 脚本文档。

https://www.adobe.com/devnet/photoshop/scripting.html

此链接包含所有最新的 JavaScript、AppleScript 和 VBScript 文档。

我希望这可以帮助您了解 Illustrator 和 Photoshop 工具是不同的,它们的工作方式也不同。

【讨论】:

    猜你喜欢
    • 2011-08-13
    • 1970-01-01
    • 2018-06-03
    • 2011-08-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-22
    相关资源
    最近更新 更多