Skip to content

1. Start a project

Make the motion-watcher project in Tato Studio, add the camera module from the Marketplace, drop the camera into the stream, and play it.

A new project’s one stream plays a test pattern. You’ll turn it into the motion watcher over the next steps.

Open Tato Studio and press New project (⌘N). Name it motion-watcher and press Create. Studio makes the project’s folder in Documents/Tato Studio/ and opens it, with one stream, motion-watcher, in the Stream graph.

The first time a project opens, the runtime sets up its Python environment, which downloads Python and the SDK. Give it a minute.

Press Play (F5), and click the testpatternsource card: the Node visualizer shows colour bars, with a potato bouncing around them.

Cameras come in a module. Choose File › Marketplace…, search for camera, and open tatolab-camera. Its page lists what’s inside: one node, CameraSource. Press Add to motion-watcher.

Studio downloads the module, checks it, and copies it into the project. Close the module manager and go back to the graph.

Click the graph, press Tab, type camera, and press Enter to place a CameraSource. Click it: the visualizer shows your camera. On a Mac, the first time asks for camera access; the picture starts once you allow it.

Select testpatternsource and press Delete. The stream is now one node, the camera.

Without a camera, skip this and keep the test pattern: read camerasource as testpatternsource from here on.

Everything you did is saved in the project’s folder:

motion-watcher/
├── tatolab-project.json the project: its name, its identity and its modules
├── streams/
│ └── main.graph.json the stream: its nodes and the wires between them
├── imports/
│ └── tatolab-camera/ the camera module, copied in
├── pyproject.toml the Python packages your nodes use
└── .tatolab/ this machine's log and the project's history

You won’t need to open any of these in this tutorial; Studio keeps them. Streams and graphs describes the graph document if you’re curious.

Next you’ll write a node that reports motion: Write your first node.