Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.62k stars 824 forks source link

Unable to "applyPreset" #257

Open crunchyfx opened 4 years ago

crunchyfx commented 4 years ago

Hi

I have a CEP panel plugin released. It works for everyone except this one user. The plugin loads custom ffx files and adds them to the layers.

It comes with an installer which installs the plugin in: /Library/Application Support/Adobe/CEP/extension The user have confirmed that it is indeed installed in this folder.

First I get the folder path like this: var hostPath = (window.location.href.substr(0, location.href.lastIndexOf("/client/") + 1) + "host/").toString();

Which is then send to extendscript. The extendscript adds the ffx files like this: var file = File(hostPath+"ffx/effectname.ffx"); layer.applyPreset(file);

As said, this works. But I have one user who gets this weird error: Error: After Effects Error: Unable to call "applyPreset" because of parameter 1. Path is not valid. Path "/Applications/Adobe After Effects 2020/Adobe After Effects 2020.app/Contents/Resources/Library/Application Support/Adobe/CEP/extensions/com.companyname.pluginname/ffx/effectname.ffx"

So somehow the window location returns the wrong value? Or? Any ideas are welcome.

Thanks, Jakob

axwt commented 4 years ago

Have you tried to use a native CSInterface.getSystemPath() command instead to get an extension folder?