Receiving Error when trying to set composition markers. AE 22.2.0 (Build 120)

New Here ,
Mar 04, 2022 Mar 04, 2022

Copy link to clipboard

Copied

When I'm trying to set marker on a composition in After Effects it ends up with an Erorr:

CSelectronASSERT fail: CSelectron: layer is null

Right before AE 22.2.0 update it was working fine.

My code:

 

var trackMarker = new MarkerValue(
  this.tracks[this.marksCount - 1].credits
);

trackMarker.duration = trackDuration;
trackMarker.label = (this.marksCount - 1) % 16;

uiElements.items.video.markerProperty.setValueAtTime(
  this.cursor - trackDuration,
  trackMarker
);

 

 

TOPICS
Error or problem , Scripting

Views

54

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Mar 05, 2022 Mar 05, 2022

Likes

Translate

Translate
Explorer ,
Mar 05, 2022 Mar 05, 2022

Copy link to clipboard

Copied

LATEST

The issue has been fixed in the latest beta. See here:

https://community.adobe.com/t5/after-effects-discussions/after-effects-22-2-bug-in-the-scripting-eng...

 

For AE 22.2, the workaround seems to be to wrap markerProperty.setValueAtTime() in a try/catch block. More here:

https://adobe-video.uservoice.com/forums/911311-after-effects/suggestions/44793199-bug-report-script...

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines