mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
convert 'ValidateAttributes' settings only if are available
This commit is contained in:
parent
4bb7c58231
commit
82c3442f61
1 changed files with 8 additions and 7 deletions
|
|
@ -641,13 +641,14 @@ def _convert_3dsmax_project_settings(ayon_settings, output):
|
|||
ayon_max["PointCloud"]["attribute"] = new_point_cloud_attribute
|
||||
# --- Publish (START) ---
|
||||
ayon_publish = ayon_max["publish"]
|
||||
try:
|
||||
attributes = json.loads(
|
||||
ayon_publish["ValidateAttributes"]["attributes"]
|
||||
)
|
||||
except ValueError:
|
||||
attributes = {}
|
||||
ayon_publish["ValidateAttributes"]["attributes"] = attributes
|
||||
if "ValidateAttributes" in ayon_publish:
|
||||
try:
|
||||
attributes = json.loads(
|
||||
ayon_publish["ValidateAttributes"]["attributes"]
|
||||
)
|
||||
except ValueError:
|
||||
attributes = {}
|
||||
ayon_publish["ValidateAttributes"]["attributes"] = attributes
|
||||
|
||||
output["max"] = ayon_max
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue