animate cal3d bones
Hi all,
What I have is a cal3d avatar with a peoplemaker morph (for a talking mouth). The avatar has to perform an animation: lean forward - back the origin - lean backward back to origin - lean left - back to origin - lean right and back to origin. The bone that I want to rotate is one of the spineBones. This is the code-part where i'm talking about: Code:
viz.starttimer(TIMER_BODY_MOVEMENT, .03, 1) How can I make this a smooth animation? Thanks! |
Anybody?
Shorter question: How do I animate a cal3d bone. ( not the neckBone )? Thanks! |
I've attached a sample script that creates a custom vizact action that animates a bone. The code at the bottom of the script shows how to use the action. This action will be included in the vizact library in the next release of Vizard. Let me know if anything is unclear.
Code:
import viz |
Thanks man!!!
I'll take a look at it as soon i've got the time. |
Example request for vizact.boneSpinTo()
I noticed that for the Q1 2008 Release of Vizard, vizact.boneSpinTo() is listed as an addition.
vizact.boneSpinTo() action for animating avatar bones I am running vizard_3.00.2701. I cannot find any additional information about vizact.boneSpinTo() in the Help Documentation. Can someone please post an example of how to use vizact.boneSpinTo() without including the sample script as posted above? For now I'm using the sample script but more condensed code would be preferable. Thanks! ~Karla |
Here is a short sample:
Code:
lookLeft = vizact.boneSpinTo('Bip01 Head',mode=viz.AVATAR_LOCAL,euler=(-90,0,0),speed=90) Code:
|
Thank you!
I was working in a long file, which made troubleshooting more difficult than necessary. I made the following concise example and got it to work. With a more positive resolve, I was able to find my mistakes in the longer file. It's all working now. Thanks, Karla Code:
#****************************************************************************************** |
All times are GMT -7. The time now is 01:35 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC