Start a new topic

AR.ModelAnimation: onFinish not called

AR.ModelAnimation: onFinish not called

1 person has this problem


Hi,

 

i'm writing an ar experience for Architect. I created a 3d model with an animation. I want to do something in the onFinish-Event of the ModelAnimation, but the onFinish-event is not fired.

 

World.flag = new AR.Model("assets/model.wt3", {

  onClick: onClickFunction,

  scale: {

    x: 0.25,

    y: 0.25,

    z: 0.25

  }

});

 

World.animFlag = new AR.ModelAnimation(World.flag, "animation", {

  onFinish: function() {

    alert("animation finshed");

  },

  onStart: function () {

    alert("animation started");

  }

});

 

 

Can anybody help me, please?

 

Thank you very much.

 

Hi Anja,

Did you get this solved?  How?

I'm having the same issue.

 

Thx,

Tim

Having similar issues, the console says onFinish is undefined despite the fact that I've defined a function for that option. Were you able to figure it out tim?

Hi Anja,

Thx for reaching out!

Can you please send further details so we can look into the issue: 

- Which version of the SDK are you using? 

- Are you using the Native API or the JS API?

- Are you using any of our Extensions (Titanium, Cordova, Unity or Xamarin)? If so please send over the exact versions of the tools.

- - is this happening with the sample app or in your own app? If it happens with your own app, does the sample app work on your device?

- What device does this happen with?
- Does it work on other devices?

- Is the path to the Model valid and is the file accessible (compare forum post)

 

In addition it would be helpful to have the crash log. 

 

Thanks,

Paula

 
Login or Signup to post a comment