WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rating: Thread Rating: 12 votes, 5.00 average. Display Modes
  #1  
Old 04-22-2013, 07:52 PM
cgsong58 cgsong58 is offline
Member
 
Join Date: Apr 2013
Posts: 7
How to fix the error in link demo in Teacher in a book

I found that the link does make an error the following:

Traceback (most recent call last):
File "<string>", line 11, in <module>
File "C:\WorldViz\teacher in a book demos and examples\teacher in a book code snippets (R4)\p44_example.py", line 46
head_bone = male.getBone( 'Bip01 Head' )
^
SyntaxError: invalid syntax

I know that viz.eyeheight(0) makes an error also.
My code in page 46 in Teacher in a Book is as follows:

#Link the view to the male's head.
head_bone = male.getBone( 'Bip01 Head' )
view_link = viz.link( head_bone, viz.MainView )
#Set the eyeheight at 0 (so the default
#eyeheight is not added to the data).
viz.eyeheight( 0 )
Reply With Quote
  #2  
Old 04-22-2013, 08:36 PM
cgsong58 cgsong58 is offline
Member
 
Join Date: Apr 2013
Posts: 7
I fixed the error.

Just before, I have fixed error.
Due to missing the right parenthesis in the previous statement.
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
Help with File Reading/Writing Lynnifer Vizard 2 03-12-2012 06:51 AM
Closing of an imported .py file Uttama_vizard Vizard 2 05-04-2010 06:18 AM
IVEx file extenstion unrecognised. sindi Vizard 2 12-10-2009 01:20 AM
Read file....many issues Uttama_vizard Vizard 9 07-08-2008 02:16 PM
File Management Uttama_vizard Vizard 2 07-01-2008 09:44 AM


All times are GMT -7. The time now is 05:29 PM.


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