예제 #1
0
 def save(self):
     """Saves the contributor info back to :attr:`xmlnode`"""
     _correctValInNode(self.xmlnode, 'author', self.author)
     _correctValInNode(self.xmlnode, 'authoring_tool', self.authoring_tool)
     _correctValInNode(self.xmlnode, 'comments', self.comments)
     _correctValInNode(self.xmlnode, 'copyright', self.copyright)
     _correctValInNode(self.xmlnode, 'source_data', self.source_data)
예제 #2
0
 def save(self):
     """Saves the light's properties back to :attr:`xmlnode`"""
     self.xmlnode.set('id', self.id)
     self.xmlnode.set('name', self.id)
     pnode = self.xmlnode.find('%s/%s' % (tag('technique_common'), tag('spot')))
     colornode = pnode.find(tag('color'))
     colornode.text = ' '.join(map(str, self.color ) )
     _correctValInNode(pnode, 'constant_attenuation', self.constant_att)
     _correctValInNode(pnode, 'linear_attenuation', self.linear_att)
     _correctValInNode(pnode, 'quadratic_attenuation', self.quad_att)
     _correctValInNode(pnode, 'falloff_angle', self.falloff_ang)
     _correctValInNode(pnode, 'falloff_exponent', self.falloff_exp)
예제 #3
0
파일: light.py 프로젝트: timknip/pycollada
 def save(self):
     """Saves the light's properties back to :attr:`xmlnode`"""
     self.xmlnode.set("id", self.id)
     self.xmlnode.set("name", self.id)
     pnode = self.xmlnode.find("%s/%s" % (tag("technique_common"), tag("spot")))
     colornode = pnode.find(tag("color"))
     colornode.text = " ".join(map(str, self.color))
     _correctValInNode(pnode, "constant_attenuation", self.constant_att)
     _correctValInNode(pnode, "linear_attenuation", self.linear_att)
     _correctValInNode(pnode, "quadratic_attenuation", self.quad_att)
     _correctValInNode(pnode, "falloff_angle", self.falloff_ang)
     _correctValInNode(pnode, "falloff_exponent", self.falloff_exp)
예제 #4
0
 def save(self):
     """Saves the light's properties back to :attr:`xmlnode`"""
     self.xmlnode.set('id', self.id)
     self.xmlnode.set('name', self.id)
     pnode = self.xmlnode.find('%s/%s' %
                               (tag('technique_common'), tag('spot')))
     colornode = pnode.find(tag('color'))
     colornode.text = ' '.join(map(str, self.color))
     _correctValInNode(pnode, 'constant_attenuation', self.constant_att)
     _correctValInNode(pnode, 'linear_attenuation', self.linear_att)
     _correctValInNode(pnode, 'quadratic_attenuation', self.quad_att)
     _correctValInNode(pnode, 'falloff_angle', self.falloff_ang)
     _correctValInNode(pnode, 'falloff_exponent', self.falloff_exp)