WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 02-29-2008, 01:18 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can apply an offset to a bone, which will cause the mesh to stretch. However, if you want to apply a uniform scale, this is not possible. Here is some code showing how to apply bone offsets:
Code:
import viz
viz.go()

avatar = viz.add('vcc_male.cfg',pos=(0,0,5),euler=(180,0,0))
avatar.state(4)

#Offset the head bone, which will cause the neck to stretch
head  = avatar.getBone('Bip01 Head')
head.offset(0.1,0,0)
Reply With Quote
 


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


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


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