WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-06-2008, 06:56 AM
Frank Verberne Frank Verberne is offline
Member
 
Join Date: Mar 2008
Location: Netherlands
Posts: 148
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?
Reply With Quote
  #2  
Old 05-06-2008, 09:24 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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')
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PPT Demo mikestatic Precision Position Tracker (PPT) 1 09-23-2007 10:31 AM
demo of new hand.getFingerTip() halley Vizard 9 12-14-2006 12:40 AM
using demo with intersense G-Chan Vizard 1 02-06-2006 02:05 PM


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


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