Skip to content

Instantly share code, notes, and snippets.

View hfiller's full-sized avatar

Hannes Filler hfiller

View GitHub Profile
@hfiller
hfiller / script.py
Last active November 19, 2020 20:32
Basic program to get 2d Projection
import numpy as np
import matplotlib.pyplot as plt
import json
with open("/path/to/state.txt") as f:
bookmarks = json.load(f)
bookmark = bookmarks[0] # We'll look at the first bookmark
eye = np.array(bookmark["cameraDef"]["position"])