Vizconnect Viewpoint animation via transport.
Thank you Jeff, I managed it via Transport..:
The updated code to move the viewpoint...
Code:
#Set the animation speed and mode
SPEED = 12,000
MODE = viz.SPEED
ROTATE_MODE = viz.NO_ROTATE
def gotoViewPointAmeniteis(pos):
global vp
#action = vizact.goto(pos,SPEED,MODE,pivot=(0,1,0),rotate_mo de=ROTATE_MODE)
action = vizact.goto(pos,SPEED,MODE,pivot=vizconnect.getVie wpointDict(),rotate_mode=ROTATE_MODE)
vizconnect.getTransport().getNode3d().runAction(ac tion)
Cheers!!
Thank you
World Viz
Especially Jeff and Kevin
|