importer use UpdateTimeStep doesn’t work
num_animations = importer.GetNumberOfAnimations()
print(f"Number of animations: {num_animations}")
if num_animations > 0:
importer.EnableAnimation(0)
anim_name = importer.GetAnimationName(0)
print(f"Enabled animation: {anim_name}")
def execute(self, iren:vtk.vtkRenderWindowInteractor, event_id:str):
if event_id == 'TimerEvent':
if self.current_time < self.anim_duration:
self.importer.UpdateTimeStep(self.current_time)
self.importer.Modified()
iren.Render()