WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 08-04-2010, 11:43 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
When using localhost for the Motionbuilder server two ports need to be specified. Here's an example script to test with:
Code:
import viz
viz.go()

#Import the Vizard module
import vizmocap

# Load ground
viz.add('tut_ground.wrl')

#Set the window to stay on top
viz.window.setFloat()

#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
  #2  
Old 08-04-2010, 08:15 PM
7up 7up is offline
Member
 
Join Date: Aug 2010
Posts: 5
Thank you for the quick reply.
My problem was solved!!
Reply With Quote
Reply

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


All times are GMT -7. The time now is 08:48 AM.


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