Access TH3 glbox slices (position)

Hello,

how can I access the slice/projection (position) in a TH3 glbox plot other than by mouse? I would like to make a video with moving slices… so I have to move the slices in a simple macro.


Thanks!

[quote=“tobauer”]Hello,

how can I access the slice/projection (position) in a TH3 glbox plot other than by mouse? I would like to make a video with moving slices… so I have to move the slices in a simple macro.

Thanks![/quote]

There is no public API for this. The one that is private will not help you much, it accepts 2D mouse cursor coordinates doing some calculations internally to transform them into the 3D slice position.
In theory, what you can try to do, for a given plot’s POV/angle, generate the sequence of mouse press + mouse-move + mouse release events as if you’re really moving a slice using a mouse to trigger this machinery to work.

Is there maybe another way to generate this kind of moving 2d slices in root (not in gl)?