Hello,
I have rebuild one of my panel for CS6 to publish it in Agora but I have a big problem.
I have "export(ed) my panel as a CS extension"., have installed the ZXP file but i can't find the panel in the subfolder../Plugins/Panels.
The problem is that I have embedded a script in my panel to open files located into the "configuratorpanel.assets". It can't work because the files are not on the same place as a normal export.
Here is sample of my code to understand :
"
//---------------------------------------------------
//Localized Path to the plug-ins folder
//---------------------------------------------------/
var strPlugInsFolderDirectory = localize( "$$$/LocalizedFilenames.xml/SourceDirectoryName/id/Extras/[LOCALE]/[L OCALE]_Plug-ins/value=Plug-ins" );
//---------------------------------------------------
// Open the Edges Collections directory
var strEdgeFXFolder = Folder(app.path.toString() + "/" + strPlugInsFolderDirectory + "/Panels/edgeFX/Content/edgeFX.assets/Edges%20Collections/");
var edgeFXFile = strEdgeFXFolder .openDlg("Choose the egde you want to apply","JPEG/PNG:*JPG;*.JPEG;*.JPE;*.PNG");
open (edgeFXFile)"
Many thanks for your help.
Sebastien
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
Xiaoyan
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/");
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
regards
giuliana
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.
North America
Europe, Middle East and Africa
Asia Pacific