WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-25-2012, 06:44 AM
Adam.Grey Adam.Grey is offline
Member
 
Join Date: Jan 2012
Posts: 9
I also want to do exactly this. I was unable to figure it out, but here's what I tried:

(assuming "male" is a cal3d avatar with a bone called "Bip01 Head")
Code:
import viz
import vizmat
viz.go()

viz.MainView.setPosition(0, 1.8, 1.0)
viz.MainView.setEuler(180, 0, 0)

headbone = male.getBone("Bip01 Head")
trans = vizmat.Transform()
trans.setScale(0, 0, 0)
headbone.unlock()
headbone.setMatrix(trans)
The head doesn't change at all.

my guess (and this is a wild guess) is that at some point in vizard's code they normalize the matrix.
Reply With Quote
 

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
Change model alpha and memory leak hosier Vizard 2 06-25-2009 10:55 AM
Successful Cal3D Export But Texture Problems ezanih Plug-in development 2 01-26-2009 04:28 PM
Cal3D Stereo Bug? shivanangel Vizard 3 10-30-2008 07:38 AM
Incampatible CAL3D files luakt Vizard 4 09-14-2008 11:28 PM
importing avatars with cal3d marcoleon Vizard 15 04-28-2006 04:48 PM


All times are GMT -7. The time now is 10:41 AM.


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