We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4800f80 commit 16edcd7Copy full SHA for 16edcd7
1 file changed
examples/validation/camera_jump.py
100644
100755
@@ -1,3 +1,17 @@
1
+#!/usr/bin/env -S uv run --script
2
+#
3
+# /// script
4
+# requires-python = ">=3.12"
5
+# dependencies = [
6
+# "trame>=3.13.2",
7
+# "trame-vtklocal>=1",
8
+# "vtk==9.6.20260517.dev0",
9
+# ]
10
11
+# [[tool.uv.index]]
12
+# url = "https://wheels.vtk.org"
13
+# ///
14
+
15
import asyncio
16
17
# Required for vtk factory
@@ -100,7 +114,8 @@ async def _animate(self):
100
114
if resolution < 4:
101
115
self.delta = +1
102
116
103
- self.on_resolution_change(resolution + self.delta)
117
+ with self.state:
118
+ self.state.resolution = resolution + self.delta
104
119
105
120
def _build_ui(self):
106
121
with DivLayout(self.server) as self.ui:
0 commit comments