WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   changing paintings of art gallery demo (https://forum.worldviz.com/showthread.php?t=1479)

Frank Verberne 05-06-2008 06:56 AM

changing paintings of art gallery demo
 
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
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
Code:

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:
Code:

texture = viz.add('ball.jpg')

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

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



All times are GMT -7. The time now is 12:31 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC