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)
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)
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)
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)