Root.format instead of data.width

This commit is contained in:
karimmozlia 2021-10-15 15:26:17 +02:00
parent cb4dc83fd8
commit 296b730507
2 changed files with 2 additions and 25 deletions

View file

@ -1031,27 +1031,6 @@ class WorkfileSettings(object):
log.error(msg)
nuke.message(msg)
bbox = self._asset_entity.get('data', {}).get('reformat')
if bbox:
try:
x, y, r, t = bbox.split(".")
data.update(
{
"x": int(x),
"y": int(y),
"r": int(r),
"t": int(t),
}
)
except Exception as e:
bbox = None
msg = ("{}:{} \nFormat:Reformat need to be set with dots, "
"example: 0.0.1920.1080, "
"/nSetting to default").format(__name__, e)
log.error(msg)
nuke.message(msg)
existing_format = None
for format in nuke.formats():
if data["name"] == format.name():

View file

@ -112,10 +112,8 @@ class CreateWriteRender(plugin.PypeCreator):
"name": "Reformat01",
"class": "Reformat",
"knobs": [
("type", 1),
("box_fixed", 1),
("box_width", width),
("box_height", height)
("resize", 0),
("black_outside", 1),
],
"dependent": None
}