View Single Post
  #5  
Old 11-02-2016, 04:54 AM
bbb bbb is offline
Member
 
Join Date: Nov 2015
Posts: 46
Dear Jeff,
Is there a way to get the nodes that in the center of the view from pick command? since it gave me an error of "object is not iterable" when trying to use this like pickRect command.

Here is a sample code:

def objectOfInterest(normPos):

picked=viz.MainWindow.pick(normPos)
for node in picked:
if node==triangle:
print "triangle view"

Thanks.
Reply With Quote