Author Topic: Animate only 1 time  (Read 3431 times)

Offline bigfishcatcher

  • byte
  • *
  • Posts: 17
    • View Profile
Animate only 1 time
« on: May 21, 2008, 02:36:52 pm »
I have successfully created an animation sequence loading in OBJ and converting them to meshes.  I will animate correctly 1 time moving from 0 to 1 - however when I go back to 0 for the animate variable or even cycle from 0 to 1 again the character stays in the last frame.

Thanks for your help I really like this program.

Gary

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Animate only 1 time
« Reply #1 on: May 21, 2008, 03:53:24 pm »
Could it be that the Mesh of the animated object is part of the animation itself? Or in other words: The object that you call animate() on must not reference a Mesh that also part of the Animation of that object.
Try to clone the Mesh of the animated object and see if that helps.

Offline bigfishcatcher

  • byte
  • *
  • Posts: 17
    • View Profile
Re: Animate only 1 time
« Reply #2 on: May 21, 2008, 04:27:32 pm »
Yep - that was it

Thanks for the quick response!