How do you plan to initiate the sequence? From a button, or on model load?
I set my experience up to have a button click event start the sequence. Then I call repeatSequence(); on the model PlayStopped event. This will run the sequence until the value you are watching changes.
$scope.stopSequence = function() {
$scope.app.fn.triggerWidgetService('model-1', 'stop');
};
$scope.repeatSequence = function(){
var twxvalue = $scope.app.params.TWXvalue;
if (twxvalue == 0)
{
$scope.app.fn.triggerWidgetService('model-1', 'play');
}
}
$scope.$watch("app.params.TWXvalue", function sequenceUpdate() {
console.log('in sequenceUpdate');
$scope.stopSequence();
});