Possible to programmatically adjust region?

I’m wondering if it’s possible to programmatically adjust the region over the course of an animation? For instance at the beginning of the animation I’d have the complete region of interest, and by the end of the animation the region of interest is only half of the Y-axis. In between frames would interpolate between the two region sizes. Thank you.

Yes, you can do that with a renderer’s Bounding Box, which has a SetExtents(min, max) function. You’ll need to call SetExtents() in a loop that iterates over time.

https://ncar.github.io/VaporDocumentationWebsite/pythonAPIReference/userModules/vapor.renderer.html#vapor.renderer.BoundingBox

1 Like