mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
wip on reset_format
This commit is contained in:
parent
782f09b7be
commit
0229c35a4d
1 changed files with 3 additions and 1 deletions
|
|
@ -207,7 +207,6 @@ def reset_resolution():
|
|||
width = asset["data"].get("resolution_width", 1920)
|
||||
height = asset["data"].get("resolution_height", 1080)
|
||||
pixel_aspect = asset["data"].get("pixel_aspect", 1)
|
||||
|
||||
bbox = asset["data"].get("crop", "0.0.1920.1080")
|
||||
|
||||
try:
|
||||
|
|
@ -236,6 +235,7 @@ def reset_resolution():
|
|||
format_name = project["name"] + "_1"
|
||||
|
||||
if used_formats:
|
||||
check_format = used_formats[-1]
|
||||
format_name = "{}_{}".format(
|
||||
project["name"],
|
||||
int(used_formats[-1][-1])+1
|
||||
|
|
@ -246,6 +246,8 @@ def reset_resolution():
|
|||
format_name)
|
||||
)
|
||||
|
||||
# format_build
|
||||
|
||||
make_format(
|
||||
width=int(width),
|
||||
height=int(height),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue