I'm trying to script the playing of a couple of animated .mp4 Opacity Masks, and am having a doozy of a time.
Using the new Behavior script with the animated mask selected for "Animated Texture" and the Screen Image object in question for the "Visual Object" is returning an error of wrong argument number count.
Using a custom script on the Screen Image object also seems to not be working:
var myAnimation = script.getSceneObject().getFirstComponent("Component.Image");
var loops = 0;
var offset = 0.0;
This also returns a wrong argument count error on line 4: 1 expected, got 2.
My goal is simply to have the masks not animate until a trigger is satisfied, then play once.
Thanks for all of your help!