WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 02-28-2005, 02:06 PM
Johannes Johannes is offline
Join Date: Jan 2005
Posts: 143
locate a certain point in the scene 3D

Is it possible to locate a certain point in the scene by clicking on it with the mouse?

I would like to use this to position my objects (e.g. I click on a certain position with my mouse and get the position printed) then I cann translate my object there...

def mouse...

	if button == viz.MOUSEBUTTON_RIGHT:
		line = viz.screentoworld(viz.mousepos())
		begin = line[:3]
		end = line[3:]
		cube = viz.endlayer()
		print end

P.S. out of certain reasons I don't want to use the stage.
Reply With Quote

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

All times are GMT -7. The time now is 07:05 AM.

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