WorldViz User Forum  

Go Back   WorldViz User Forum > Precision Position Tracker (PPT)

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-14-2011, 01:42 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Red face Export MotionBuilder to Vizard

I have issues with tracking in vizard;I have gone through avaiable demos. I'm getting an error message concerning the module stating. ImportError: No module named (xxxx) or a No Attribute error; I'm using Ascension Motionstar. I'm not sure what the module is?
Reply With Quote
  #2  
Old 06-24-2011, 10:40 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Are you using Live Characters and Motionbuilder to map MotionStar data to an avatar in Vizard or are you trying to get MotionStar data into Vizard using the Ascension plug-in? Can you post an example of the code you are using?
Reply With Quote
  #3  
Old 06-27-2011, 02:13 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Unhappy MotionStar to Vizard w/ Ascension plug-in

I'm trying to pull the information from MotionStar into Vizard with the Ascension plug-in. I'm running a for-loop to grab the sensors and assign to a sphere, then trying another for-loop to grab the bones and link to the avatar to a sensor. Here is a my code

import vizconfig
import vizshape
import time


viz.go()

female = viz.add('vcc_female.cfg')

ascension = viz.add('ascension.dle')
sensors = ascension.addMotionStar('10.32.16.31')


# Array of color to assign to sensors
colors = [viz.RED,viz.BLUE,viz.YELLOW,viz.GREEN,viz.PURPLE,v iz.GRAY,viz.WHITE,viz.ORANGE,viz.YELLOW,viz.GRAY]
bones = ['Bip01 Head','Bip01 Spine1', 'Bip01 L Forearm', 'Bip01 R Forearm', 'Bip01 L Hand', 'Bip01 R Hand','Bip01 L Thigh', 'Bip01 R Thigh','Bip01 L Foot','Bip01 R Foot']

# Loop to grab each sensor from MotionStar

for s in sensors:
# i=sensors.getBirdNumber()
# print i
model = vizshape.addSphere(0.05, color=colors[s.getBirdNumber()])
# model = vizshape.addSphere(0.05)
viz.link(s,model)
# print s.getBirdNumber()
#for s in sensors: prints

for b in bones:
head = female.getBone(b)


viz.link(s,head)

import vizcam
vizcam.PivotNavigate(center=[0,1,0],distance=1)

PLEASE HELP!!
Reply With Quote
  #4  
Old 06-28-2011, 12:44 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
In a previous thread I asked if the following code works for you but I did not get a response. Do you get an error when running this after you replace the IP address with your MotionStar server IP?
Code:
import viz
viz.go()

ascension = viz.add('ascension.dle') 
sensors = ascension.addMotionStar('10.32.16.31')

for s in sensors:
	model = vizshape.addCube(0.1)
	viz.link(s,model)
Reply With Quote
  #5  
Old 06-29-2011, 11:25 AM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Smile

I do not get an error when I run the code you posted, and I'm trying to build onto by attaching the sensor to an avatar directly from MotionStar to Vizard. Thanks so much assisting me.
Reply With Quote
  #6  
Old 06-29-2011, 03:28 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Our workflow for animating a character using mocap data includes Motionbuilder and Live Characters. Motionbuilder handles the inverse kinematics and calculates where all the bones should be. If you try to directly map tracking data to the avatar's bones in Vizard it will not look correct.
Reply With Quote
  #7  
Old 06-30-2011, 12:56 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Lightbulb

That explains why my avatar's body is all over the place. I thought it was scaling and euler issues. Thanks.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vizard 4 Beta Testing farshizzo Announcements 0 02-01-2011 10:46 AM
Vizard 4 Beta Testing farshizzo Vizard 0 02-01-2011 10:46 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM
Can Vizard export data in XML format ginaty Vizard 3 02-26-2009 02:54 PM
Export from 3Ds Max to Vizard pattie Vizard 5 08-26-2006 11:20 AM


All times are GMT -7. The time now is 07:45 PM.


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