Navigation request

I entered - RunPythonScript - in a command line window and it asks for an angle - it seems this script changes the cplane but what I’m wanting is to move in and out of ortho views smoothly into perspective manipulation/orbiting.

I think WIM misunderstood me.

Using this line “-ViewportProperties Projection Toggle Enter” I can move from ortho into perspective, but it requires a keystroke combo and afterwards the object is sometimes moved in the change over. Why couldn’t that script be assigned to the right mouse click when in ortho like the zoom function is when in perspective by holding down the option key?