刚装上cs版的,打开了示例脚本Dim appRef As New Photoshop.Application Dim docRef As Photoshop.Document Dim artLayerRef As Photoshop.ArtLayerIf appRef.Documents.Count > 0 Then Set docRef = appRef.ActiveDocument Else ' open sample file FileName = appRef.Path & "\样本\山丘.tif" Set docRef = appRef.Open(FileName) End If Set artLayerRef = docRef.ActiveLayer If (artLayerRef.IsBackgroundLayer) Then artLayerRef.IsBackgroundLayer = False End If docRef.ActiveLayer.ApplyStyle "迷惑(图像)"可一运行,就提示"找不到工程或库",我看了一下引用,发现adobe photoshop 8.0 object library引用无效,好像它所指的库文件根本不存在.怎么解决啊?
看看是不是对你有些帮助
Dim docRef As Photoshop.Document
Dim artLayerRef As Photoshop.ArtLayerIf appRef.Documents.Count > 0 Then
Set docRef = appRef.ActiveDocument
Else ' open sample file
FileName = appRef.Path & "\样本\山丘.tif"
Set docRef = appRef.Open(FileName)
End If Set artLayerRef = docRef.ActiveLayer
If (artLayerRef.IsBackgroundLayer) Then
artLayerRef.IsBackgroundLayer = False
End If
docRef.ActiveLayer.ApplyStyle "迷惑(图像)"可一运行,就提示"找不到工程或库",我看了一下引用,发现adobe photoshop 8.0 object library引用无效,好像它所指的库文件根本不存在.怎么解决啊?