def RotateCamera(delta_angle, duration, repeat, tm = 0.0): if repeat == 0 or duration <= 0: return if repeat < 0: repeat = IFINIT_LOOP_NUM oldValue = [NBGM_SCRIPT_CONTEX.queryInfo('GetRotateAngle')] newValue = [oldValue[0] + delta_angle] action = [SetRotateAngle] __start_animation__(oldValue, newValue, duration, repeat, tm, action)
def ZoomCamera(scale, duration, repeat, tm = 0.0): if scale <= 0 or repeat == 0 or duration <= 0: return if repeat < 0: repeat = IFINIT_LOOP_NUM oldValue = [NBGM_SCRIPT_CONTEX.queryInfo('GetViewPointDistance')] newValue = [oldValue[0]*scale] action = [SetViewPointDistance] __start_animation__(oldValue, newValue, duration, repeat, tm, action)
def GetRotateAngle(): return NBGM_SCRIPT_CONTEX.queryInfo('GetRotateAngle')
def GetTiltAngle(): return NBGM_SCRIPT_CONTEX.queryInfo('GetTiltAngle')
def GetCameraHeight(): return NBGM_SCRIPT_CONTEX.queryInfo('GetCameraHeight')
def GetViewPointDistance(): return NBGM_SCRIPT_CONTEX.queryInfo('GetViewPointDistance')