Skip to content

Commit 8ed43e2

Browse files
authored
Merge pull request #24 from TouchDesigner/200-series/part1
200 series/part1
2 parents 1036bfa + ccfd812 commit 8ed43e2

133 files changed

Lines changed: 1759 additions & 469 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build_file_list.py

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,25 @@
1616

1717
import os
1818
import datetime
19+
import shutil
1920

2021
# NOTE - repo variables
2122
repo_owner = "TouchDesigner"
2223
repo_name = "CurriculumExamples"
2324
branch_name = "main"
2425

25-
#NOTE - download_link_structs
26+
# NOTE - download_link_structs
2627
link_struct = "https://github.com/{repo_owner}/{repo_name}/raw/{branch_name}/{asset_path}"
2728
navigator_link_struct = "?actionable=1&action=load_tox&remotePath={url}"
2829

2930
# NOTE - directories that will be used to generate manifest and download lists
3031
new_release_paths = [
3132
'toxExamples/sweet16',
32-
'toxExamples/TouchDesignerFundamentals/100']
33+
'toxExamples/TouchDesignerFundamentals/100',
34+
'toxExamples/TouchDesignerFundamentals/200',
35+
]
36+
37+
archive_dir = 'toxExamples/_zipped'
3338

3439
print("- "*10, '\n', "-> Starting automated file generation\n", "- "*10)
3540

@@ -63,7 +68,7 @@
6368
manifest_file.write(f'{tox_url}\n')
6469

6570
# generate curriculum links
66-
print(f"---> Creating curriculum links {curriculum_links}")
71+
print(f"---> Creating curriculum links {curriculum_links}")
6772
with open(curriculum_links, 'w') as curriculum_links_file:
6873
header_line = f"Curriculum links Manifest | Last Modified {datetime.datetime.now()}\n \n"
6974
curriculum_links_file.write(header_line)
@@ -82,4 +87,23 @@
8287
curriculum_links_file.write(f'{tox_url}\n')
8388
curriculum_links_file.write('\n')
8489

85-
print("- "*10, '\n', "-> Automated file generation completed\n", "- "*10)
90+
print("- "*10, '\n', "-> Automated file generation completed\n", "- "*10)
91+
92+
# NOTE creates zips of TOX directories
93+
94+
# ensure archive directory exists
95+
if os.path.exists(archive_dir):
96+
pass
97+
else:
98+
os.mkdir(archive_dir)
99+
100+
# generate new zipped archive
101+
for each in new_release_paths:
102+
path_parts = each.split('/')[1:]
103+
output_path = f'{archive_dir}/{"".join(path_parts)}Examples'
104+
new_archive = shutil.make_archive(output_path, 'zip', each)
105+
106+
if os.path.exists(new_archive):
107+
print(f'-> {new_archive} created')
108+
else:
109+
print(f'-> {new_archive} Archive Generation failed')

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
ResourceNavigator/dev/log/
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "Sudo Widgets",
5+
"path": "../TouchDesigner-Fundamentals/dev/200",
6+
"cwd": "${workspaceFolder}",
7+
},
8+
],
9+
"settings": {
10+
"files.exclude": {
11+
".dart_tool": true,
12+
".idea": true,
13+
"android": true,
14+
"ios": true,
15+
"linux": true,
16+
"macos": true,
17+
".flutter-plugins*": true,
18+
".metadata": true,
19+
"analysis_options.yaml": true,
20+
"dashboard.iml": true,
21+
"pubspec.lock": true,
22+
"LICENSE": true,
23+
},
24+
}
25+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"folders": [
3+
{
4+
"name": "Automation",
5+
"path": "../.github/workflows",
6+
"cwd": "${workspaceFolder}",
7+
},
8+
],
9+
"settings": {
10+
"workbench.colorTheme": "Crackpot Contrast (rainglow)"
11+
}
12+
}

ResourceNavigator/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# TouchDesigner Resource Navigator
2+
3+
An easy to use remote resource navigation and example tool kit - using the flexibility of the web to render rich text embedded directly in TouchDesigner. Following along with examples, see them in action, and even open up networks to see how they work.
4+
5+
# Getting Started
6+
To view these examples you'll need to use the TouchDesigner Navigator.
7+
8+
You can find the [Navigator here].
9+
10+
Download the toe file from the `/release` directory. Or [click here.]
11+
12+
Once you've opened the Navigator, use the Gear icon located in the upper left of the documentation pane to view the project's settings:
13+
14+
![](assets/readme-imgs/settings-gear.jpg)
15+
16+
Use the parameter `Resource Page` to set the target website for the navigator to use. Use the resource link listed in the project description for the navigator.
17+
18+
![](assets/readme-imgs/settings.jpg)
19+
20+
Once you've loaded a resource page, use the webpage on the left side of the interface to find and load examples.
21+
22+
![](assets/readme-imgs/resource-nav-ui.jpg)
23+
24+
While using the TouchDesigner Navigator you can `Load` remote TOX files, `Open` a floating TouchDesigner network, or open the same `Web` page in another browser:
25+
26+
![](assets/readme-imgs/actions.jpg)
27+
28+
Happy programming!
16 KB
Loading
190 KB
Loading
6.04 KB
Loading
11.8 KB
Loading
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
@echo off
2+
rem turn off echo
3+
4+
rem set TouchDesigner build numbers
5+
set TOUCHVERSION=2023.11290
6+
7+
rem set our project file target
8+
set TOEFILE="resource-navigator.toe"
9+
10+
rem set the rest of our paths for executables
11+
set TOUCHDIR=%PROGRAMFILES%\Derivative\TouchDesigner.
12+
set TOUCHEXE=\bin\TouchDesigner.exe
13+
14+
rem combine our elements so we have a single path to our TouchDesigner.exe
15+
set TOUCHPATH="%TOUCHDIR%%TOUCHVERSION%%TOUCHEXE%"
16+
17+
18+
if exist %TOUCHPATH% goto :STARTPROJECT
19+
20+
echo Touch Version: %TOUCHVERSION% is not installed.
21+
22+
CHOICE /M "Download"
23+
if %errorlevel% equ 1 goto :DOWNLOAD
24+
if %errorlevel% equ 2 goto :eof
25+
26+
27+
:DOWNLOAD
28+
echo Downloading...
29+
rem download version that isn't installed.
30+
start "" https://download.derivative.ca/TouchDesigner.%TOUCHVERSION%.exe
31+
goto :eof
32+
33+
34+
:STARTPROJECT
35+
rem start our project file with the target TD installation
36+
start "" %TOUCHPATH% %TOEFILE%
37+

0 commit comments

Comments
 (0)