mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
saving studio files
This commit is contained in:
parent
4d52556f2b
commit
ce9f431508
1 changed files with 4 additions and 3 deletions
|
|
@ -130,7 +130,7 @@ class StudioWidget(QtWidgets.QWidget, PypeConfigurationWidget):
|
|||
|
||||
if key_metadata["type"] == "file":
|
||||
new_path += ".json"
|
||||
per_file_values[new_path] = {key: values}
|
||||
per_file_values[new_path] = values
|
||||
continue
|
||||
|
||||
for new_key, new_values in values.items():
|
||||
|
|
@ -138,8 +138,9 @@ class StudioWidget(QtWidgets.QWidget, PypeConfigurationWidget):
|
|||
(new_path, new_key, key_metadata["value"], new_values)
|
||||
)
|
||||
|
||||
for path in per_file_values:
|
||||
print(path)
|
||||
for file_path, file_values in per_file_values.items():
|
||||
with open(file_path, "w") as file_stream:
|
||||
json.dump(file_values, file_stream, indent=4)
|
||||
|
||||
def add_children_gui(self, child_configuration, values):
|
||||
item_type = child_configuration["type"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue