adobe-cep / samples Goto Github PK
View Code? Open in Web Editor NEWCode samples for CEP extensions
License: MIT License
Code samples for CEP extensions
License: MIT License
in illustrator, nothing is visible or nothing happening.
is it normal ???
Hi There,
it lists in the Windows->Extension Submenu on Mac inside PPRO.
But nothing happens when selecting the menu item.
Were you aiming to show folks how to insert a menu item in a Menu ? Or is a panel supposed to open.
One last question. If those panels are so powerful, how come 90% of all sample code never works,
Including this one ?
Can you please tell me how you build your extensions?
After making your extension, if you modify your code ,then how do you see the output?
How do you see output in developing stage ?
This is a follow-up to this question that I posted in Adobe's Scripting SDK forum. In short, the RSSReader example does not work, in spite of adjusting the manifest.xml
to
<Host Name="IDSN" Version="[10.0,12.9]"/>
to match the latest InDesign CC version. I've also set PlayerDebugMode
to 1
in order to develop the extension, as per documentation. I am able to open the extension's panel but without content; trying to connect the debugger fails as well. I've also switched the logging level to INFO
but get only an expected
2017-01-09 13:22:07:567 : INFO PlugPlug version : 7.0.0.59
2017-01-09 13:22:07:567 : INFO LogLevel : 1
2017-01-09 13:22:07:567 : ERROR Signature verification failed for extension com.adobe.htmlsample.rssreader.panel
Hi,
dragging image to the finder works as expected, however if I try to drag an item to the timeline or project window it is not added.
I am using OSX 10.9.5 with PPRO 8.1.0 (81)
This is an issue regarding:
The samples contained within this repo doesn't show how to build UI with any of the existing UI frameworks like React, Angular. I would like to have an example to show how to build a CEP Panel with Angular so we can integrate this with Typescript.
I would like to send a PR for this.
Problem: The extension refreshes by itself after resume the script execution
To reproduce the bug, first you need to enable Node.js in PProPanel:
ExtensionManifest
Version
from 4.0
to 6.0
CEFCommandLine
from DispatchInfo
to the Resources
tagmanifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<ExtensionManifest Version="6.0" ExtensionBundleId="com.adobe.PProPanel" ExtensionBundleVersion="11.1"
ExtensionBundleName="Premiere Pro sample panel"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ExtensionList>
<Extension Id="com.adobe.PProPanel" Version="10.3.0" />
</ExtensionList>
<ExecutionEnvironment>
<HostList>
<Host Name="PPRO" Version="9.0" />
</HostList>
<LocaleList>
<Locale Code="All" />
</LocaleList>
<RequiredRuntimeList>
<RequiredRuntime Name="CSXS" Version="6.0" />
</RequiredRuntimeList>
</ExecutionEnvironment>
<DispatchInfoList>
<Extension Id="com.adobe.PProPanel">
<DispatchInfo >
<Resources>
<MainPath>./index.html</MainPath>
<ScriptPath>./PProPanel.jsx</ScriptPath>
<CEFCommandLine>
<Parameter>--allow-file-access</Parameter>
<Parameter>--allow-file-access-from-files</Parameter>
<Parameter>--enable-nodejs</Parameter>
</CEFCommandLine>
</Resources>
<Lifecycle>
<AutoVisible>true</AutoVisible>
</Lifecycle>
<UI>
<Type>Panel</Type>
<Menu>PProPanel (SDK sample panel)</Menu>
<Geometry>
<Size>
<Height>300</Height>
<Width>180</Width>
</Size>
</Geometry>
</UI>
</DispatchInfo>
</Extension>
</DispatchInfoList>
</ExtensionManifest>
Steps to reproduce the bug:
Enviroment to reproduce the bug:
Notes:
After resume the execution, the extension reloads automatically
I've been trying to update keyframes on a simple clip which is just an image.
I've basically followed this implementation which was the only good example I saw on playing around with keyframes.
It seems that my image is actually updated and after the script is run, it really does change the component property(Scale
in this case) and leaves the final result there. The only problem is that the keyframes are not being saved from what I can tell even though logging the component[].properties[].getKeys()
return an array of Time
objects.
I don't know if this is actually a bug or if it's something that I've missed when reading through the script on github. Anyway, any help is appreciated!
In the PPro sample, rename the sequence marker is not working in PPro 2018 (in PPro 2017 it works).
Steps to reproduce:
JSX code:
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx#L192
We can use the Script UI in Extensions, Progressbar also works fine in OSX. However, When we call ScriptUI's panel or window from CEP side, we got blank window in Windows. Definitely, Works fine same code when call from ESTK.
Please refer below article, You can find some screenshot and test extension project.
https://forums.adobe.com/thread/2505027
Ten A
There are several APIs listed in the PProPanel sample project's api_doc.html
documentation that have misleading explanations. Specifically, the return value explanation is frequently at odds with the actual value returned. An example is Project.ImportFiles
:
Returns 0 if Premiere Pro successfully imports the array of file paths. If
suppressUI
is true, no UI will be presented. ifimportAsNumberedStills
is true, Premiere Pro will attempt to import the array as a still image sequence.
The documentation suggests that the function should return a falsey 0
in the case that the import was successful. Currently, and this is another bug, the example above always returns a boolean
value of true
, both on success and failure (testing was conducted with audio files).
This is the case for Premiere Pro 2017.1.
Still not working in PPro2018. Possibly related to this this bug.
Samples/PProPanel/jsx/PPRO/Premiere.jsx
Lines 743 to 745 in 01ea9a0
Hi,
I'm trying to run the Flickr panel: I've obtained a Flickr API key that I've inserted on main.js, line 1.
I got a Failed to load resource: the server responded with a status of 403 (Forbidden) error - the server responded this way:
jQuery19109386410422157496_1426884783629({"stat":"fail","code":95,"message":"SSL is required"})
Anything that I miss here?
Thank you!
Hi,
what should the panel display when a layer is dragged onto the squares in the DnDPSLayer.html page? On my system (OSX Yosemite, PS CC 2014.2.1) there's no thumbnail, just the CSS .hover class applied.
Thanks!
Hello,
I would like to dive in adobe extension development but can't get it work.
I am working on OSX 10.14.4 with illustrator 23.0.4.
I have 'installed' the extensions properly and where loaded in the extension menu. When i click on a extension i just opens and display nothing:
I have setup debug as documented, restarted etc but localhost does also nothing.
Anyone know where to look?
My Premiere panel works perfectly on some machines, but on others, the script trips up on core javascript functions - I get errors like ".indexOf() is not a function" or ".filter() is not a function" when doing some operations on arrays inside the JSX. Why would that happen on some machines but work on others if the files inside the extension folders are identical and all machines have Premiere up to date?
Hi Team,
I have created a custom HTML5 Extensional Panel for CC Bridge. I just want to know how can I get the image path for an image selected in CC Bridge.
Can I get it ?
One more thing - Can I edit keywords field in Metadata panel from my custom panel? I want to do it to sort/categorise image based on these keywords.
<Extension Id="ExchangeExample.panel">
should instead be:
<Extension Id="com.adobe.cep.exchange.extension.panel">
-Davide
The documentation on http://ppro.aenhancers.com/ states that there's a function setStartTime for instances of the ProjectItem object, this is wrong. ProjectItem has the method setInPoint(value). Beyond that setInPoint and setOutPoint have quite some strange behaviour concerning the parameter. This parameter is the offset in seconds from the start of the item and not a timecode or a value in Ticks like it is used with sequences.
Hi there,
Is there's a way to attach event in JSX to PPro's event ? For example when the user import a file, is there a way to get a callback called ?
Thanks.
Now that the Exchange has relaunched we need to update or remove outdated examples.
https://github.com/Adobe-CEP/Samples/tree/master/ExchangeExample
Hi,
Scripting against Premiere Pro - 13.1. Purpose: add a key-frame on the in point, one on the outpoint and 2 in between. The timing is always off. Is this a bug or am I missing something?
My Code:
var seq = app.project.activeSequence;
var ip = seq.getInPointAsTime();
var op = seq.getOutPointAsTime();
var firstVideoTrack = seq.videoTracks[0];
var clipsFromFirstVidTrack = firstVideoTrack.clips;
var theClip;
var clipComponents;
// get the selected clip
for (var i = 0; i < clipsFromFirstVidTrack.numItems; i++) {
var currentClip = clipsFromFirstVidTrack[i];
if (clipsFromFirstVidTrack[i].isSelected()) {
theClip = clipsFromFirstVidTrack[i];
clipComponents = theClip.components;
}
}
for(var j = 0; j < clipComponents.numItems; ++j) {
if(clipComponents[j].displayName == "Motion") {
var motion = clipComponents[j];
var motionScale = motion.properties.getParamForDisplayName("Scale");
var k = motionScale.getKeys();
if (!motionScale.isTimeVarying()) { motionScale.setTimeVarying(true); }
motionScale.addKey(ip.seconds);
motionScale.addKey(ip.seconds + 1);
motionScale.addKey(op.seconds - 1);
motionScale.addKey(op.seconds);
var k = motionScale.getKeys();
if (motionScale.areKeyframesSupported() == true) {
var result = motionScale.getValueAtKey(ip);
motionScale.setValueAtKey(ip.seconds, 100, false); // 100%
motionScale.setValueAtKey(ip.seconds + 1, 200, false); // 200%
motionScale.setValueAtKey(op.seconds - 1, 200, false); // 200%
motionScale.setValueAtKey(op.seconds, 100, true); // 100%
}
}
}
The result:
The result is inconsistent by the way. Sometimes the key-frames are inserted too early, sometimes too late (like in this example).
Best regards,
FreVsAlpha
PProPanel is misleading. It contains the --enable-nodejs
directive in the manifest but that directive does nothing, because:
CEFCommandLine
is in the wrong place. It's under <DispatchInfo>
instead of under <Resources>
.<ExtensionManifest Version="4.0">
, instead of "5.0" or higher (but not "8.0" because then your extension is not loaded, of course...).If we copy the sample to create our own panel, we expect Node.js to work since --enable-nodejs
is defined. However, it doesn't work. This can be verified by debugging in Chrome (cep_node is undefined
) and also by enabling verbose logging, opening ~/Library/Logs/CSXS/CEP8-PPRO.log
and seeing that CEFCommandLine is not displayed for PProPanel.
Please add documentation of minimum Version
and CEFCommandLine
location in manifest. I just wasted a whole day on this. The sample here is correct.
Related: #74
This is an issue regarding:
8.x+
for this repo]: 8.0The example for the excellent XMPBridge unfortunately leads to an Unregistered namespaceURI schema
error when used.
* // now we're ready to go.
* XMPBridge.read('NS_DC', 'title');
*
Instead the example should probably include reference to the fact that you can get the the namespace URI from Adobe's constants like NS_DC by calling XMPBridge.toNamespaceURI()
* // now we're ready to go.
* XMPBridge.toNamespaceURI('NS_DC', function(namespaceUri) {
* XMPBridge.read(namespaceUri, 'title');
* });
The api-doc included with the PProPanel sample code describes the setPlayerPosition method on Sequence as accepting a timecode string of the format 'hh;mm;ss;nn', when in fact setPlayerPosition takes a timecode expressed in ticks, as shown in the PProPanel example code.
Line 42 in 7e5137c
how we can detect activeClipChangeInTimeline event?
is it any document that mentioned all supported events in premiere pro?
I didn't find it in premiere Document.
@bbb999 as there's a rather new function Track.overwriteClip
(not listed in Premiere's 11.0 Object Model), is there maybe a function to just remove a clip from a Track?
Generally: is it possible to remove entries from Collections? Like in this case a TrackItem from a TrackItemCollection of a Track.
I get this error in the browser debugger when I open up the Flickr extension in Photoshop. I am using Adobe Photoshop 2015.5
I have already:
Added my Flickr API key to FLICKR_API_KEY in main.js
Enabled Node.js in the Manifest.xml file between and
Hi,
is it possible to know what is the state-of-the-art for Exchange API?
Are they already implemented Add-ons server side? Is there a roadmap/timeframe you can share?
Thank you very much,
Davide
Just updated the PS to the latest version (2015.1 release), and every extension that used some node modules reported this error, why??
I'm unable to open PProPanel in Premiere Pro CC 2015 & 2017 with Mac Sierra
I can see the extension. []https://postimg.org/image/86und3u0x/ But nothing happens.
defaults write /Users/marcbookpro/Library/Preferences/com.adobe.CSXS.6.plist PlayerDebugMode 1
Has been applied. Other extensions I've created don't work either...
Property Explorer does work.
What is the right forum to ask questions about CEP, extendscript, writing HTML panels, for Premiere pro?
Anand
Note: issues submitted on this repo should be related to the samples contained within. If you have a general question about CEP, ExtendScript, or related topics, please visit the Extensions development forum.
This is an issue regarding:
8.x+
for this repo]:In Adobe Premiere Pro CC 2017 v11.1.1 an uncaught exception appears when executing the function app.encoder.encodeFile();
(In previous versions it worked fine)
It runs well when I choose Window->Extensions->PProPanel (SDK sample panel) in Adobe Premiere Pro CC 2014.
However, when I'm trying to run it in Extendscript Toolkit CC, there are several errors:
In case you did not know ExtenScript Toolkit doesn't work on Mojave.
Entering in one line of code takes 40 SWODs and 60 seconds.
No one can work like that
Is the simpledissolve extension compatible with the most recent Photoshop CC (19.1.1)?
I did not find any information about how to install the extension, so I copied the three folders SimpleDissolveUI
, SimpleDissolveScripts
, SimpleDissolveApplyFilter
into
%AppData%\Adobe\CEP\extensions\
.
The readme implies that a menu item "Simple Dissolve Extension…" will show up in the Filter menu, however, no such menu item appears after restarting Photoshop.
The documentation for using Adobe-CEP is inconsistent and makes it more difficult for developers to get up and running on an Adobe-CEP project.
Various links on Adobe.io pages, and all cookbooks included in the Adobe-CEP Resources Repo link to extension builder 3.
Hello this isn't issue more of a question.
I am looking for a Adobe Premiere js libary i can use to build a import or project?
I make alot of elearning classes i 60 sequences so i just wrote a a script to built the premiere sequences. standard stuff intro/main/outro and put all the files in the the chapter-> sequence -> bin.
I built reverse engineered hack to build my own adobe premiere import using the final cut pro spec I just stumbeled to these samples. do you have a legitmimate librarby I can use? i can push my stuff to the web service and pull it in json/xml if that is easier.
either by modifying the manifest, the panels are not created. Those samples does not work with AE.
Hi
I am a beginner. I am just starting to learn how to write extensions/panels. I am using PPRO v12.0.
I copied the PProPanel sample to ~//Library/Application Support/Adobe/CEP/extensions directory. Changed the manifest.xml files
<ExecutionEnvironment>
<HostList>
<Host Name="PPRO" Version="12.0" />
</HostList>
<LocaleList>
<Locale Code="All" />
</LocaleList>
<RequiredRuntimeList>
<RequiredRuntime Name="CSXS" Version="8.0" />
</RequiredRuntimeList>
</ExecutionEnvironment>
When I open Primiere Pro, I don't see the panel in Windows -> Extensions menu.
Am I missing something here? How do I get the panel to show up?
Thanks
Anand
Hi -- The Typescript example is really useful, but seems to only have typings for Premiere. Is there any chance Adobe could generate typings for its other products? In particular, I'm interested in Illustrator. Cheers! nehal
The UI Samples (https://github.com/Adobe-CEP/Samples/tree/master/UI_Showcase) URL appears to be broken or the repo's not available. Can anyone fix/remove that?
Prior to the 2015.2 release if you dragged a text element over an empty document and then dropped, the text frame was created with the drop text inserted. Now you must first create a text frame and only then will dropping text work.
I just downgraded InDesign and confirmed using the CEP_HTML_Test_Extension example.
Steps to reproduce:
Premiere Pro CC2017 bug here.
If you try to walk through all video clips of app.project.activeSequence and then walk through its components until you reach "AE.ADBE Motion" which corresponds to Rotation, Opacity etc. And then try to change the corresponding property with the name "Position" or just call getValue() of it - the exception "Bad argument" fill fire.
There's no such problem with Opacity for example. Seems position is a vector value and getValue should work some other non-documented way? There's nothing in Samples about that. Can you help?
Thank you!
It looks like the host version numbers aren't up-to-date with the latest CC tool versions. E.g. InDesign should be Version="[11.0,12.9]"
or the like.
Hi, I'm making customized panel for Premiere Pro CC 2018.
I expect my panel can perform a few functions:
Can I achieve these two goals through CEP?
I'm looking around Premiere Pro Scripting DOM API (which includes classes such as App, TrackItem, ...).
Now, I'm referring to Object Model Viewer that can be reached from ExtendScript Toolkit CS5. But it seems like unfriendly and poor, so I want detailed docs about these. Can anyone give me the links or docs?
how to run premiere pro script from command line without etk like after effects ?..
is that possible ?.....
download .jsx file from net and not etoolkit in system how to run this script ?
Hi,
I've moved the SimpleDissolveScripts into Photoshop/Presets/Scripts and when I launch: Filter > Simple Dissolve Extension... a progress bar flashes for a while but no extension with UI shows up.
Tried both on CC2014 and CC2015 - am I doing something wrong?
Thank you,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.