WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-08-2013, 01:21 PM
brunomartelli brunomartelli is offline
Member
 
Join Date: Apr 2013
Location: London
Posts: 41
Animation

I have some mocap characters and i want to be able to jump to and play from a particular frame - how do i do that?
Reply With Quote
  #2  
Old 05-10-2013, 01:46 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
I'm not sure what you mean by mocap characters. If have a Cal3D avatar with a saved animationyou can use <node3d:avatar>.setAnimationTime to play it from different points in the animation cycle.
Reply With Quote
  #3  
Old 05-13-2013, 09:08 AM
brunomartelli brunomartelli is offline
Member
 
Join Date: Apr 2013
Location: London
Posts: 41
yes but how specifically do I set the animation frame? I have a motion captured character, exported from 3dsmax using the Cal3d exporter, it has 1 animation and

bill = viz.addAvatar('LandMan.cfg' )
bill.state(1)
bill.setAnimationTime(1,180)


doesn't do it or any other combo of numbers ...

thanks
Reply With Quote
  #4  
Old 05-13-2013, 06:25 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If the animation is cycling and you want to change the animation time, pass in 0 for the animation number. Does that work for you?
Code:
import viz
import vizact

viz.go()

avatar = viz.addAvatar('vcc_male2.cfg',pos=[0,0,5],euler=[180,0,0])
avatar.state(4)

vizact.onkeydown('1',avatar.setAnimationTime,0,5)
vizact.onkeydown('2',avatar.setAnimationTime,0,13)
Reply With Quote
Reply

Tags
animation, frame, mocap

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
control animation on ive or wrl files? Darkmax Vizard 8 07-17-2012 01:13 PM
Clarification on CAL3D Avatar Animation in Vizard shivanangel Vizard 2 11-22-2010 08:16 AM
Animation Tracks.... k_iwan Vizard 2 03-26-2007 06:52 PM
Jumpy animation Elizabeth S Vizard 1 11-08-2006 03:11 PM
avatar animation problems jrodman Vizard 1 01-18-2006 10:12 AM


All times are GMT -7. The time now is 02:12 PM.


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