Skip to content

Commit e8a8b3d

Browse files
Initital release.
1 parent fb2ac3d commit e8a8b3d

File tree

8 files changed

+144
-14
lines changed

8 files changed

+144
-14
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"Groups": {
3+
"Default": [
4+
"*"
5+
]
6+
},
7+
"$schema": "./AC_Group.schema.json"
8+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://example.com/product.schema.json",
4+
"title": "TouchdesignerConfig",
5+
"description": "A dynamic and schemabased jsonConfig for Touchdesigner",
6+
"type": "object",
7+
"properties": {
8+
"Groups": {
9+
"description": "",
10+
"type": "object",
11+
"additionalProperties": {
12+
"description": "",
13+
"type": "array",
14+
"items": {
15+
"description": "",
16+
"type": [
17+
"string"
18+
]
19+
}
20+
}
21+
}
22+
}
23+
}

Project.toe

208 KB
Binary file not shown.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ keywords=["TouchDesigner"]
77
authors = [] # Required for PyPi-Publishing
88
license-files = ["LICENSE"] # Do not forgot to adjust ;)
99
requires-python = ">=3.11"
10-
dependencies = []
10+
dependencies = [
11+
"qrcode[pil]>=8.2",
12+
]
1113

1214
[tool.uv]
1315
environments = [

src/TdQrcode/TdQrcode.tox

2.37 KB
Binary file not shown.

src/TdQrcode/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'''Info Header Start
2+
Name : __init__
3+
Author : Wieland PlusPlusOne@AMB-ZEPH15
4+
Saveorigin : Project.toe
5+
Saveversion : 2023.12000
6+
Info Header End'''

src/TdQrcode/extTdQrCode.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
'''Info Header Start
2+
Name : extTdQrCode
3+
Author : Wieland PlusPlusOne@AMB-ZEPH15
4+
Saveorigin : Project.toe
5+
Saveversion : 2023.12000
6+
Info Header End'''
7+
8+
import qrcode
9+
import io
10+
11+
class extTdQrCode:
12+
"""
13+
extTdQrCode description
14+
"""
15+
def __init__(self, ownerComp):
16+
# The component to which this extension is attached
17+
self.ownerComp = ownerComp
18+
19+
20+
def Generate_QrCodeBytes(self, target):
21+
qr_image = qrcode.make( target,
22+
box_size = self.ownerComp.par.Fieldsize.eval(),
23+
border = self.ownerComp.par.Bordersize.eval()
24+
)
25+
byteIO = io.BytesIO()
26+
qr_image.save( byteIO, format = "PNG")
27+
return bytearray( byteIO.getvalue() )

uv.lock

Lines changed: 77 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)