Skip to main content
March 14, 2019
Question

psd文件中 组(图层界面中的文件夹)是存储在五层中的哪个层哪个位置

  • March 14, 2019
  • 2 replies
  • 165 views

最近在做一个导出psd文件中素材的工作但是,找不到组的信息存储在哪里的,我是用的c#,求 !大佬解惑

    This topic has been closed for replies.

    2 replies

    JJMack
    Community Expert
    Community Expert
    March 14, 2019

    You would most likely do better asking this in the Photoshop Scripting forum the are some C# programmers over there.  To processes all layers and layer sets you need to use recursion that is all I know. Group information should be in the group object. Photoshop Scripting

    Target a layer group and run this script

    //Thanks to r-bin

    alert(obj_to_str(activeDocument.activeLayer), "Object Properties"); 

    function obj_to_str(obj){var str = ""; for (var p in obj) if(obj.hasOwnProperty(p))try{str+=p+"::"+obj

    +"\n";}catch(e){};return str;} 

    JJMack
    March 14, 2019

    its name is  icon