Slice origin as annotation in animation
I am making an animation where I vary the origin of a slice through my gaussian cube data, and would like to have an annotation of what value the X-coordinate of the slice origin is, for each frame.
I have tried using the Python Annotation Filter, but I simply cannot figure out how to get to the slice origin value. My first guess was something like Code:
"Slice origin in X = %f" % (XSlicesOrigin[0]) |
Greetings Pia and welcome to the forum!
How exactly are you varying the slice? Because it might be possible to generate the annotation directly in the code where you're doing the slice movement. Best regards, Bruno |
Quote:
|
bump
I'm just bumping this thread again, in the hope that someone can help me?
|
Hi Pia,
Sorry, but I've been busy for the past few weeks and didn't manage to look into this until now. And I've been playing around with ParaView 3.98.0 for the past 2 hours or so and the only solution I could manage to figure out was as follows:
Best regards, Bruno |
If you want to modify the origin instead of the offset the code is:
Code:
try: paraview.simple |
I know this thread is quit old, but maybe one of you could help me. I initialised this macro, it all worked fine.
But is there a possibility to syncronise the macro while exporting an animation? Yet I would need to click on the macro for every new timestep, which should go automaticly by skipping the timestep. Thank you for your help! |
All times are GMT -4. The time now is 05:07. |