WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-21-2010, 07:59 PM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
Question pick() & "GEODE" problem

I created a plane on 3DS, applied a texture and exported it to .IVE

Now I am trying to get the NAME of this object (wall01) through pick(). However I get either "Material #39" on objects with texture or "Wall01-GEODE" for objects without texture. How do I get "wall01" for an object with texture? And how can I make the export not generate these -GEODE things?


Code:

object = viz.pick(1, viz.WORLD)
print object.name
I tried pretty much everything I could find on the forum, and I still have no clue as to how get "wall01" as a return to pick(). Any ideas???
Reply With Quote
  #2  
Old 09-22-2010, 07:11 AM
Renato Lima Renato Lima is offline
Member
 
Join Date: Sep 2010
Posts: 54
After switching to .3DS, the problem is gone. Is this a problem or limitation with the .IVE file format?
Reply With Quote
  #3  
Old 09-23-2010, 11:19 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
The object.name field will hold the name of the lowest level transform. In the case of the .ive file that is a texture unless there is no texture. What you can do is get a handle to the child object using <node3D>.getChild and then check to see if that was picked:
Code:
import viz
import vizact

viz.go()
gallery = viz.addChild('gallery.ive')
painting = gallery.getChild('art04-FACES')


def showPicked():
	object = viz.pick()
	if object == painting:
		viz.logNotice('Dali painting picked')
	
vizact.onmousedown(viz.MOUSEBUTTON_LEFT,showPicked)
The following article shows what you can do when you get a handle to the GEODE sub-object in your script:

http://kb.worldviz.com/articles/1157
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
winviz.exe problem llqqff Vizard 2 07-16-2010 09:08 AM
Pick porblem with arrays shivanangel Vizard 3 08-27-2007 10:10 AM
picking problem... k_iwan Vizard 2 07-27-2007 07:57 PM
5DT Data Glove 5 Ultra Problem bjgold Vizard 1 08-08-2006 04:08 PM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM


All times are GMT -7. The time now is 10:03 AM.


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