AE 26.5 CEP/ExtendScript — how can a panel verify it is editing the same placed effect?
Hi, I’m building a docked CEP panel for After Effects 26.5 on macOS. It reads a setting from an effect, shows it in the panel, and lets the user change it. I’m trying to make sure Apply still goes to the effect the user saw on Refresh.
The case I’m stuck on is when the user reopens the same AEP, or deletes the effect and adds an identical one back in the same slot. The path, layer ID, effect name and values can all look the same. Is there a supported way in ExtendScript to tell that the open project and the placed effect are still the same across two evalScript calls? What happens to that check after Undo or Redo?
If there’s no ID or reference I can rely on, would a ScriptUI confirmation inside AE work? I could show the current target and the proposed change there. What I can’t find in the docs is whether AE keeps that effect bound until the write, or gives me a reliable way to back out if a script or plug-in changes the target while the dialog is open.
I found this related C++ SDK thread: https://community.adobe.com/questions-529/after-effects-sdk-getuniquestreamid-returns-0-safe-native-keyframe-access-from-custom-ui-callbacks-1651659
If anyone knows which API or SDK docs cover this for a CEP panel, I’d appreciate a pointer. Thanks!
