imroved data for creator of multiverse usd on animated parameters

This commit is contained in:
Bo Zhou 2022-03-09 10:21:26 +09:00
parent 1c58a3d1df
commit 9f83eec324

View file

@ -45,12 +45,14 @@ class CreateMultiverseUsd(plugin.Creator):
self.data["timeVaryingTopology"] = False
self.data["customMaterialNamespace"] = ''
animation_data = lib.collect_animation_data()
# The attributes below are about animated cache.
self.data["writeTimeRange"] = False
self.data["timeRangeNumTimeSamples"] = 0
self.data["timeRangeSamplesSpan"] = 0.0
animation_data = lib.collect_animation_data(True)
self.data["timeRangeStart"] = animation_data["frameStart"]
self.data["timeRangeEnd"] = animation_data["frameEnd"]
self.data["timeRangeIncrement"] = animation_data["step"]
self.data["timeRangeNumTimeSamples"] = 0
self.data["timeRangeSamplesSpan"] = 0.0
self.data["timeRangeFramesPerSecond"] = 24.0
self.data["timeRangeFramesPerSecond"] = animation_data["fps"]