studio.project.buildEnded

I’ve got this simple script but it works all except for the play.

Can you helm?

thanks

function playFeedback() {
console.log(“Feedback”);
var event2 = studio.project.lookup(“event:/UI/Okay”);
studio.window.triggerAction(studio.window.navigateTo(event2));
event2.play();
console.log(“played”);
}

studio.project.buildEnded.connect(playFeedback);

Hi,

The behavior you’re experiencing is due to a known issue with studio.window.navigateTo(). Unfortunately I cannot offer a workaround at present, but I’ve flagged it with the development team for further investigation.

That’s very weird, cause if I run the function under a menu item it works perfectly…

thanks anyway