Fermat
Search
⌃K

View

Center

You can request the center of your viewport in Fermat space by using the view.center method. The following example creates a block at the center of the user viewport.
set newBlock to (new text "hi!")
set newBlock.position to view.center

Blocks

In order to get all the blocks which are in your viewport you can use the view.blocks method.