This commit is contained in:
Skye Terran 2021-08-23 16:19:59 -07:00
parent c52fd22b9b
commit c25cf1a70d
2 changed files with 33 additions and 24 deletions

View File

@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 86, "execution_count": 89,
"source": [ "source": [
"import json\r\n", "import json\r\n",
"\r\n", "\r\n",
@ -50,9 +50,10 @@
" return key\r\n", " return key\r\n",
"\r\n", "\r\n",
"# add an asset to the graph\r\n", "# add an asset to the graph\r\n",
"def add_asset(data, name):\r\n", "def add_asset(data, name, path):\r\n",
" asset_data = {\r\n", " asset_data = {\r\n",
" \"name\": (\"name\", name)\r\n", " \"name\": (\"name\", name),\r\n",
" \"file\": (\"path\", path)\r\n",
" }\r\n", " }\r\n",
" \r\n", " \r\n",
" # add the asset to the graph\r\n", " # add the asset to the graph\r\n",
@ -79,7 +80,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 87, "execution_count": 90,
"source": [ "source": [
"# cache the scene\r\n", "# cache the scene\r\n",
"def cache_scene(data):\r\n", "def cache_scene(data):\r\n",
@ -148,7 +149,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 88, "execution_count": 91,
"source": [ "source": [
"# just returns a random string\r\n", "# just returns a random string\r\n",
"import random\r\n", "import random\r\n",