I’m trying to manipulate the view of a pad from the command line, but I’m having difficulties. I know this is very similar to a topic from yesterday by Pim, but as opposed to him, I’m not using the Open GL viewer. I’m simply using the default viewer.
GetView only returns the pointer to the TView stored in the pad. See: root.cern.ch/root/html/TPad.html#TPad:GetView
it does not create the TView if it does not exist. TView is usually created when a 3D plot is produced (lego, surface etc …). In the few lines you sent you do not check if the TView returned by GetView is valid or not…
Do you have a small running example (more complete) reproducing the problem ?