WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-12-2014, 03:41 AM
fabioped fabioped is offline
Member
 
Join Date: Feb 2013
Posts: 21
Question Animations and OSGB

I have this 3D model I've animated in 3D max and applied the OSG Sequence to save its animation.

My problem is how can I better handle its animation status?

I'm using setAnimationTime(0) to have the animation at its frame 0, but it appears it automatically plays when I do that.
I'm also using setAnimationState(-1) to have it stopped, but only works when its playing, and using getAnimationState() to detect that its not always reliable.

You can find in the URL bellow a very simple source example of this behavior. What I want is to animate a model with a animation path followed by its internal animation, but being able to stop this and reset the model at any time.

https://www.dropbox.com/s/nhr575byylywks5/o_milk.zip
Reply With Quote
  #2  
Old 05-12-2014, 03:53 AM
fabioped fabioped is offline
Member
 
Join Date: Feb 2013
Posts: 21
What I expected from vizard was the ability to:
- play the animation from start, whatever the current state is
- stop the animation to frame 0, whatever the current state is

Even doing this:
Quote:
def update(e):
print model.getAnimationFrame(), model.getAnimationTime()
viz.callback(viz.UPDATE_EVENT, update)
get's me nothing more than 0's during the animation

Last edited by fabioped; 05-12-2014 at 03:58 AM.
Reply With Quote
  #3  
Old 05-16-2014, 08:48 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
There's a few other commands such as loop mode and speed that might be useful for you. Take a look at this thread for example code.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Animations and OSGB fabioped Vizard 0 01-29-2014 07:07 AM


All times are GMT -7. The time now is 01:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC