View Single Post
  #2  
Old 10-13-2003, 05:54 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
mmmmm..... ice cream

This sample code will link an object to an avatar bone:
Code:
avatar = viz.add('female.cfg')
link = viz.add(viz.GROUP)
cone = link.add('IceCream.wrl')
avatar.linkbone(link,'Right Hand')
If you need to orientate the object after it is linked, you have to perform the tranformation on the cone object. Also in the example above I linked the ice cream cone to the bone named Right Hand, so make sure you change this to whatever you named the bone in Character Studio.
Reply With Quote