Replies: 1 comment 2 replies
-
@asynchronous.task
async def refresh_function(**kwargs):
res = 0
while True:
with state:
print("Resolution: {}".format(res+3))
cone_source.SetResolution(res+3)
res = (res+1) % 20
ctrl.view_update()
await asyncio.sleep(0.5) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
vpaeder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I wrote a library that generates toolpaths for some kind of engraving machine and displays them using VTK. I tought to try trame for remote display. Now I do have a little issue with dynamic update. It works with VtkRemoteView (or VtkRemoteLocalView in remote mode), but not with VtkLocalView (or VtkRemoteLocalView in local mode). In local mode, I can trigger the update from client (linked logo click action with view update) but not from server. Is this expected or am I missing something?
I use VTK 9.1.0 and trame from git (pulled June 18) on macos and debian.
Here is a short code to illustrate what I mean:
Beta Was this translation helpful? Give feedback.
All reactions