View Single Post
  #1  
Old 02-02-2010, 09:40 AM
Enlil Enlil is offline
Member
 
Join Date: May 2008
Posts: 61
Problem with geometry in vzf objects

Hello,

I am having an odd problem when I try to grab geometry from objects made from .vzf files (heads, specifically). Look at the following piece of code:

Code:
male1 = viz.add('C:\AXE\Resource\Avatar\Eric\Body\casual01_m_highpoly.cfg')
face1 = male1.face('C:\AXE\Resource\Avatar\Eric\Eric_122\Eric_122_morphs.vzf', 'Bip01 Head', 'Bip01 Neck')
eye1r = face1.getchild('geom_0') 
eye1l = face1.getchild('geom_1')

male2 = viz.add('C:\AXE\Resource\Avatar\Eric\Body\casual01_m_highpoly.cfg')
face2 = male2.face('C:\AXE\Resource\Avatar\Eric\Eric_122\Eric_122_morphs.vzf', 'Bip01 Head', 'Bip01 Neck')
male2.setPosition([1,0,1])
eye2r = face2.getchild('geom_0') 
eye2l = face2.getchild('geom_1')
There doesn't seem to be anything too odd there, but if I run it, one of the heads will have no eyes! Both heads have eyes if I do not get the eyes, though. Any ideas on why?

Thanks,
Christian
Reply With Quote