Hi, I'm new using osgAnimation. I would like to control the state of the animation, I mean, I would like to know which frame or time of the animation is happening in order to stop it whenever I want.
I've tried setting the duration in half the time, and setting a callback as follows: anim->setDuration(anim->getDuration()*0.5); osg::ref_ptr< osgAnimation::ActionStripAnimation > newAnimAction = new osgAnimation::ActionStripAnimation(anim,blendInDuration,blendOutDuration); newAnimAction->setCallback(newAnimAction->getNumFrames()*0.5, new ActionEnd(this)); But I don't think it's working... I think it only speeds up the animation but doesn't really stop it half way. Does anyone know how to achieve this? Thanks a lot! Cheers, ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=45512#45512 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

