Hi Carlos,

On Sun, Jul 12, 2009 at 7:58 PM, Carlos Sanches<[email protected]> wrote:
> I see in .OSG file the animation path . I changed the loop to NO_LOOPING and
> the object play onetime. very good too.But I still need to know the
> animation time and later to check the current time.

Once you have the appropriate node you do something like:

   osg::AnimationPathCallback* apc =
dynamic_cast<osg::AnimationPathCallback>(node.getUpdateCallback());

   if (apc)
   {
       // now we have the appropriate callback we can access the AnimationPath.
   }

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to