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.