How can I get the current camera parameters in pyqtgraph? The code below launches a window and I can move and rotate the camera but the docs doesn't tell me how I can get the camera parameters. If there are any hotkeys to get it.
import pyqtgraph as pg
import pyqtgraph.opengl as gl
from PyQt5.QtCore import QBuffer
from PyQt5 import QtCore, QtGui
from pyqtgraph.Qt import QtWidgets
from pyqtgraph.Qt import QtCore, QtGui
app = QtWidgets.QApplication(sys.argv)
w = gl.GLViewWidget()
g = gl.GLGridItem(size=QtGui.QVector3D(100,100,1),color=(255, 255, 0, 100))
w.addItem(g)
w.show()
app.exec()
the functions orbit(azim, elev) and pan(dx, dy, dz, relative='global') from https://pyqtgraph.readthedocs.io/en/latest/3dgraphics/glviewwidget.html let me set the camera position but how can I obtain them while the screen is launched?
i.e. I want to launch the screen, move the camera to a position I like, then store the azim, elev, dx ,dy, dz for use next time.