View Single Post
  #2  
Old 02-21-2018, 09:18 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,461
Here's an example that removes a texture from a texture quad:

Code:
import viz
import viztask
viz.go()

piazza = viz.addChild('piazza.osgb')
texture = viz.addTexture('lake3.jpg') 
quad = viz.addTexQuad(pos=[0,1.8,3]) 
quad.texture(texture)

def textureTask():
	yield viztask.waitKeyDown(' ')
	quad.texture(None)
	yield viztask.waitKeyDown(' ')
	quad.texture(texture)
	yield viztask.waitKeyDown(' ')
	quad.remove()
	
viztask.schedule( textureTask() )
Reply With Quote