joeymax
05-05-2008, 05:17 AM
Hi there,
Is there a way to teleport your location to a different part of your scene at the touch of a button:
For example…
theview = viz.get(viz.MAIN_VIEWPOINT)
theview.translate(0,5,0)
POSITION = 0
def mytimer(num):
global POSITION
if POSITION == 1:
theview.translate(1,0,1)
if viz.iskeydown('e'):
POSITION = 1
..now I know this code doesn’t really work, but hopefully you can see what ive tried to do.
Any help would be much appreciated :rolleyes:
Is there a way to teleport your location to a different part of your scene at the touch of a button:
For example…
theview = viz.get(viz.MAIN_VIEWPOINT)
theview.translate(0,5,0)
POSITION = 0
def mytimer(num):
global POSITION
if POSITION == 1:
theview.translate(1,0,1)
if viz.iskeydown('e'):
POSITION = 1
..now I know this code doesn’t really work, but hopefully you can see what ive tried to do.
Any help would be much appreciated :rolleyes: