ValueError: A view or layout must be specified when attempting to.SaveScreenshot() from vtkRemoteView()`
#764
Unanswered
moon-chyldren
asked this question in
Trame/ParaView
Replies: 1 comment 2 replies
-
|
This should be asked on ParaView discourse, this is not related to trame. When taking a screenshot, ParaView capture the layout of all its view. By skipping the layout setup in pure Python (aka trame), ParaView start to not be happy about that. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I’ve successfully got the save screenshot function to work before with a trame-paraview app but the trame-paraview app I’m currently working on is giving me the following error when I click the button to download a screenshot.
ValueError: A view or layout must be specifiedproceeded by the error
JS Error => [object Object]mentioned in #543My code for the trigger function looks exactly the way the working solution does that’s also mentioned in #543
I’m wondering if it has something to do with the way my app is laid out in my build_ui() function.
For instance, when I got this to work before I was using vtkRemoteLocalView() but this time I’m just using vtkRemoteView() like so
Has anyone seen this ValueError before and happen to know what’s generating it? And are there other ways (or methods) for calling simple.SaveScreenshot() from somewhere other than simple? This line seems to be where the error is originating from as the console indicates it comes from …\paraview\simiple.py”, line 1468, in SaveScreenshot so I can look there in the meantime to see if I can figure out what’s causing it.
I can provide more details if needed.
Beta Was this translation helpful? Give feedback.
All reactions