首页 > 代码库 > How to use PhotoshopApplication in maxscript

How to use PhotoshopApplication in maxscript

PhotoshopApplication = createOLEObject "Photoshop.Application"

PhotoshopApplication.Load "d:\\test\\aaa.tga"

PhotoshopApplication.ActiveDocument.Selection.SelectAll()

PhotoshopApplication.ActiveDocument.Selection.Copy()

 PhotoshopApplication.ActiveDocument.Paste()

 PhotoshopApplication.Quit()

 ReleaseOLEObject PhotoshopApplication

PhotoshopApplication = undefined 

GC() --释放内存

How to use PhotoshopApplication in maxscript