WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-14-2015, 04:58 AM
vrtheater vrtheater is offline
Registered User
 
Join Date: Apr 2015
Posts: 1
Importing constraints

Hi there,

I have rigged an robot in blender with armatures, bones and constraints.
I exported the result into fbx format (afaik it should include constraints) and converted the fbx file to osgb using this code:

Code:
target = viz.add('robot_constraints.fbx')
target.save('robot_constraints.osgb')
two questions:
a) does the information about constraints persist the conversion?

b) how do I address those bones?
I tried this:

Code:
robot = viz.add("robot_constraints.osgb")
robot.getBones("bone1")
Which does not work because robot does not have the attribute getBones()
"AttributeError: 'VizChild' object has no attribute 'getBone'"

Using getChild("bone1") does not help me either or at least I am unsure what to do with it.

Could you give me some hints how to get to the bones itself?
Reply With Quote
  #2  
Old 04-15-2015, 04:46 AM
mape2k mape2k is offline
Member
 
Join Date: Mar 2013
Posts: 60
I cannot answer question a, but question b is solved by using <robot.getChild('name of handle')>.

The reason why <getChild()> did not work for you is probably because you specified a wrong handle name. To find out the exact handle names, you can access the osgb model with the Vizard Inspector. There you will find the model and all its sub-parts.

You can upload the model here if you want, that would make it easier for me to see what the problem is.


Best,
Johannes

Last edited by mape2k; 04-15-2015 at 04:50 AM.
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
IK Handles and LookAt Constraints from Max EnvisMJ Vizard 1 02-24-2011 04:55 PM
Problems Importing Large wrl files? viz_kix Vizard 2 03-12-2008 05:31 PM
Importing other moduels v-Salik Vizard 1 10-15-2007 06:18 AM
Importing from Blender and getting "real" sizes for models? tmcw Vizard 1 03-19-2007 09:37 AM
importing a single WRL with many objects. giancamati Vizard 3 12-18-2006 01:13 PM


All times are GMT -7. The time now is 03:57 AM.


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