Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coordinate sets #2

Merged
merged 2 commits into from
Mar 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GP/Assets/code/modules/SaveLoadGlobal.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def SaveLoad_set_typical_operator_attributes( full_attribute_path , value_ ):
# json always requires keys be strings, so when we save our data out it gets stringified. must convert back.
for k,v in targetOp.storage.items():
if k in ['HullStored','PixStored']:
targetOp.storage[k]['coordList'] = { int(k2):v2 for k2,v2 in targetOp.storage[k]['coordList'].items() }
targetOp.storage[k]['coordList'] = { int(pixKey):{ pixAttrKey:{ int(k4):v4 for k4,v4 in pixAttrVal.items() } if pixAttrKey == 'coords' else pixAttrVal for pixAttrKey,pixAttrVal in pixVal.items() } for pixKey,pixVal in targetOp.storage[k]['coordList'].items() }

# call the WriteCoordsToTable function to push the storage data out to TouchDesigner nodes.
targetOp.WriteCoordsToTable()
Expand Down
3 changes: 3 additions & 0 deletions GP/GEOPIX_PREFERENCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"file_tool_bookmarks": []
}
Binary file modified GP/GeoPix_2.0.toe
Binary file not shown.
Loading