Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1998,7 +1998,7 @@ def similarity_matching(input_json_path: str, project_folder: str) -> str:
|
|
1998 |
all_costumes.extend(bd.get("costumes", []))
|
1999 |
if i == 0:
|
2000 |
sounds = bd.get("sounds", [])
|
2001 |
-
|
2002 |
"isStage": True,
|
2003 |
"name": "Stage",
|
2004 |
"objName": "Stage",
|
@@ -2016,7 +2016,8 @@ def similarity_matching(input_json_path: str, project_folder: str) -> str:
|
|
2016 |
"videoTransparency": 50,
|
2017 |
"videoState": "on",
|
2018 |
"textToSpeechLanguage": None
|
2019 |
-
}
|
|
|
2020 |
|
2021 |
with open(project_json_path, 'w') as f:
|
2022 |
json.dump(final_project, f, indent=2)
|
|
|
1998 |
all_costumes.extend(bd.get("costumes", []))
|
1999 |
if i == 0:
|
2000 |
sounds = bd.get("sounds", [])
|
2001 |
+
stage_obj={
|
2002 |
"isStage": True,
|
2003 |
"name": "Stage",
|
2004 |
"objName": "Stage",
|
|
|
2016 |
"videoTransparency": 50,
|
2017 |
"videoState": "on",
|
2018 |
"textToSpeechLanguage": None
|
2019 |
+
}
|
2020 |
+
final_project["targets"].insert(0, stage_obj)
|
2021 |
|
2022 |
with open(project_json_path, 'w') as f:
|
2023 |
json.dump(final_project, f, indent=2)
|