How to reset viewport in SceneKit editor

I am working on a new 3D application and created a new SceneKit Scene.scn, it seemed off when I couldn’t see the grid that usually would be on the x and y axis in a 3D program, just grey.


I added a node then set the location to 0,0,0. It moved out of the viewport that is visible. But now I cannot get the viewport to move to see the node. I must have pinched to zoom too many times because now when I add an object, the position is at wild values and the object is not even seen on my screen.


Can an I set the view of the viewport back to default? Or Center and zoom to be centred on an object?


I am lost and I cannot find my objects.

Is the problem when editing in IB ?


In any case, your post would better be in Scenekit part of the forum.

This is very late, but I'll post my solution for anyone new coming across this question.

All you need to do is right click the object in the Scene Graph View, then select 'Focus Selection'! Screenshot here. Make sure the object is not hidden (I got stuck because of that for a long time).

The zoom might be off but you can adjust it with Shift + Scroll.


How to reset viewport in SceneKit editor
 
 
Q