View Single Post
Old 04-22-2013, 07:52 PM
cgsong58 cgsong58 is offline
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)\", 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 = 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