Commit 166882d0 authored by David E. DeMarle's avatar David E. DeMarle

fix export of non time varying data

parent f6f500e4
......@@ -820,14 +820,17 @@ def explore(cs, proxies, iSave=True, currentTime=None, userDefined={},
if not times:
eye, at, up = track_source(tracked_source, eye, at, up)
tprop = cs.get_parameter('time')
tvalues = tprop['values']
for i in range(len(tvalues)):
eye_values.append([x for x in eye])
at_values.append([x for x in at])
up_values.append([x for x in up])
nearfar_values.append([x for x in cam.GetClippingRange()])
viewangle_values.append(cam.GetViewAngle())
try:
tprop = cs.get_parameter('time')
tvalues = tprop['values']
for i in range(len(tvalues)):
eye_values.append([x for x in eye])
at_values.append([x for x in at])
up_values.append([x for x in up])
nearfar_values.append([x for x in cam.GetClippingRange()])
viewangle_values.append(cam.GetViewAngle())
except (KeyError):
pass
cs.add_metadata({'camera_eye': eye_values})
cs.add_metadata({'camera_at': at_values})
cs.add_metadata({'camera_up': up_values})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment