View Single Post
  #2  
Old 07-24-2017, 10:09 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,462
First check to see if the intersected object is the quad, then get the name attribute you assigned to it. Does that work for you?
Code:
import viz
viz.go()

myTexQuad = viz.addTexQuad(pos=[0,1.8,2])
myTexQuad.name = "texQuadCustomName"

info = viz.intersect([0,1.8,0],[0,1.8,4])
if info.valid:
	if info.object == myTexQuad:
		print myTexQuad.name
Reply With Quote