Please find the "assets" folder at below directory when you are using "File->Export as CS Extension" and install the zxp by Extension Manager:
Mac: /Library/Application Support/Adobe/CS6ServiceManager/extensions/
Windows: C:\Program Files (x86)\Common Files\Adobe\CS6ServiceManager\extensions
Thank you so much Xiaoyan.
Can you tell me how to modify my javscript to be sure to access the folder where may layer mask are installed?
1 person found this helpful
You can create the Folder object to "Configurator-Panel.assets" in this way:
var assetFolder = new Folder(Folder.commonFiles.fsName + "/Adobe/CS6ServiceManager/extensions/" + [Your extension ID] + "/content/Configurator-Panel.assets/" );
where [Your extension ID] is the value you set in the attribute labeled with "Extension ID:" in right attribute panel.
In your script, I think it should be:
var strEdgeFXFolder = Folder(Folder.commonFiles.fsName + "/Adobe/CS6ServiceManager/extensions/" + [Your extension ID] + "/content/Configurator-Panel.assets/Edges%20Collections/");
You guys Rocks!
I'll be able to publish my panel in Agora soon!
Thanks a lot!
A easy way to find the path to assets folder is using the global variable "assetsPath". You can get the assets folder by
var assetsFolder = new Folder(assetsPath);
Folder.commonFiles.fsName point to:Adobe Photoshop CS6 (x86)
How to target for Adobe Photoshop CS6 (64 Bit) ?
If you installed the extension with Extension Manager CS6, Folder(Folder.commonFiles.fsName + "/Adobe/CS6ServiceManager/extensions/" + [Your extension ID] + "/content/Configurator-Panel.assets/Edges%20Collections/") is the only place for your extention. It's same for both Photoshop CS6 (x86) and Photoshop CS6 (x64). I suggest you to use var assetsFolder = new Folder(assetsPath); to access your assets folder. If you want to find a way to access the common files foder for X64, I don't have a solution now. I'm afraid you need to find other resources for help.
Thank you for the quick reply.
Indeed so, I know the place is the same but unfortunately when I run PS(64 Bit) it give me an invalid image data error.
I did some tests:
If I target r(Folder.commonFiles.fsName + "/Adobe/" ) all is ok,
if I target (Folder.commonFiles.fsName + "/Adobe/CS6ServiceManager" ) it fails
The only folder that is not recognize is "CS6ServiceManager" all others are ok
what can be the problem? Is it just my problem as I m trying on a win system that run under a virtual machine( WMware Fusion)?
I could of course write the entire path that works well:
C:\Program Files (x86)\Common Files\Adobe\CS6ServiceManager\extensions
but it would be better to have just one path for both Win and Mac
I think Folder.commonFiles.fsName points to the common files folder for X64 (such as C:\Program Files\Common Files), but your assets folder is only under common files folder for x86(such as C:\Program Files (x86)\Common Files).
I strongly suggest you to use the global varailbe assetsPath. In any situation, running PS or PS (64bit), installing exported zxp package with Extension Manager CS6 or just placing exported folder under Plug-ins\Panels, new Folder(assetsPath) will point to the assets folder of your extension.
Yes, it points only for X64, I had the opportunity to verify that was not just an error on my system
I will use new Folder(assetsPath) of course.
Thank you very much.