How to move the scene using API or command? Not use ToolBar(left side) from KIT app

How to move the scene using API or command? Not use ToolBar(left side) from KIT app.
For example: create button to move the entire scene left, right,up and down, zoom in, zoom out

@yong.peng1 i am just another OV user but not an avid OV app/extension developer. however, i believe the viewport control is actually tied to a perspective camera, which has its own xform and aperture control (for actual zooms and not just pushing the camera forward and back).

so in that sense, i wonder if you could retrieve that information and apply controls over it. Unfortunately i don’t know the API enough to tell you the exact implementation, but here’s the kit command i was able to extrapolate when moving the default perspective camera along its X axis (from value 500.0 to 400.0) using the command tool:

import omni.kit.commands
from pxr import Gf, Sdf, Usd

omni.kit.commands.execute('ChangeProperty',
	prop_path=Sdf.Path('/OmniverseKit_Persp.xformOp:translate'),
	value=Gf.Vec3d(400.0, 500.0, 500.0),
	prev=Gf.Vec3d(500.0, 500.0, 500.0)
)

but i am sure the devs/mods would be able to provide more indepth answer when they get around to this thread.

and here are some more code samples pertaining to viewport controls that might come in handy at some point - Viewport — Omniverse Developer Guide latest documentation