PDA

View Full Version : changing paintings of art gallery demo


Frank Verberne
05-06-2008, 06:56 AM
Hi all,

How can I change the paintings in the art gallery demo? I need to change the painting with the self portret of Van Gogh on it. How can I manipulate that painting? I tried using this code gallery = viz.add('gallery.ive')
gallery.getChild('art04-FACES') and changed the four of 'art04-FACES' to all kinds of numbers, but none would give me control over the painting I want. I also tried this one
list = gallery.getChildren() but then the list only has [viz.VizNode(2)] in it. Does anybody know how to fix my problem?

farshizzo
05-06-2008, 09:24 AM
The following will texture the Van Gogh self portrait with a new texture:texture = viz.add('ball.jpg')

gallery = viz.add('gallery.ive')

portrait = gallery.getChild('VanGoghSelfPortrait')
portrait.texture(texture,'art06')