Thread: LiveCharacter
View Single Post
Old 08-04-2010, 10:43 AM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,455
When using localhost for the Motionbuilder server two ports need to be specified. Here's an example script to test with:
import viz

#Import the Vizard module
import vizmocap

# Load ground

#Set the window to stay on top

#Add an avatar to the scene
male = viz.add('vcc_male.cfg',pos=(0,0,6),euler=(180,0,0))

#Connect to a Live Characters server at the specified address and port, attach the avatar
lc1 = vizmocap.LiveCharacter('localhost',8050,8055,model=male)
Reply With Quote