Skip to main content
Participant
March 4, 2022
Answered

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

  • March 4, 2022
  • 1 reply
  • 224 views

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
);

 

 

This topic has been closed for replies.
Correct answer ConstantinMaier

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-engine-when-creating-and-updating-composition-markers/td-p/12751542

 

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-scripting-command-to-add-comp-marker-w

1 reply

ConstantinMaier
ConstantinMaierCorrect answer
Inspiring
March 5, 2022