When I was drawing the time curve of Point Gaussian, the traced Python script was executed with error.
So the selection items in GUI can’t be traced in a Python script? What should I do to get the right points? Thanks for any help!
I’m sorry for not uploading the data file before. Now I re-edit the post. I modified the data path in “1.py” and attached “data.zip” file. Please uncompress the zip file to root D disk on Windows OS with path “D:\data\stress00**.vtk”. I think the macro 1.py can reproduce this issue.
Thank you very much!
So do you mean ParaView can record the selection operation with step 6 or some other meaning?
I find that in “1.py” the python script have corresponding codes of selection operation. But when I run it again there is error as the video shows.
Yes, I reproduce your operation and it’s correct. But my main purpose is selecting some points and draw the curve. So I have tried your suggestion and the error still occur as the video shows bellow. The error message is still the same: Name Error: name ‘plotSelectionOverTime1’ is not defined.
So can you find out why when I want to draw some curve with data things go wrong?
Thank you again!
Could you provide steps to reproduce your issue using the same format as mine (with your data is ok)? I’m still unclear about what is actually the problem here.
Wow, that’s indeed a bug ! I don’t have a way to work around it for now using trace, but you can simply fix your script after it has been generated by adding this line just before the first usage of plotSelectionOverTime1.
There is indeed no error message already. But as you promoted in GitLab issue channel this script still can’t reproduce the curve as GUI create.
So right now I can follow up this issue on GitLab if it is fixed in further ParaView released version?
Thank you!
Ok, the workaround selection method you mean is GUI operation right now? or can I select points by number or coordinates in a script? Although I haven’t achieved and maybe try it later.
But thank you all the same!
Em…I think so. When you fixed the script can you plot the time curve? I post the modified script file 2.py.
When I run it there is still an empty plot.
Sorry to dig this post years ago. I just met the similar issue as the main post and I am using Paraview 5.10 and the issue seems remain.
I uploaded the traced python script from the very beginning to load VTK files. I intended to select one point and plotsectionovertime. The the code started to give error from Line 105 “plotSelectionOverTime1Display = Show(plotSelectionOverTime1, quartileChartView1, ‘QuartileChartRepresentation’)” with the error message “NameError: name ‘plotSelectionOverTime1’ is not defined”.
I wonder to fix this issue, which command(s) I should add to the traced script?
Thank you very much!!! salishsea_sal2_test.py (20.9 KB)