:) As you'll see this is quite simple due to the architecture of everything. Simply run view3d and then execute the current buffer in node.