mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
syntax fixes
This commit is contained in:
parent
873385e9a4
commit
837807d535
4 changed files with 16 additions and 15 deletions
|
|
@ -180,9 +180,10 @@ def format_anatomy(data):
|
||||||
try:
|
try:
|
||||||
padding = int(anatomy.templates['render']['padding'])
|
padding = int(anatomy.templates['render']['padding'])
|
||||||
except KeyError as e:
|
except KeyError as e:
|
||||||
msg = "`padding` key is not in `render` "
|
msg = ("`padding` key is not in `render` "
|
||||||
"Anatomy template. Please, add it there and restart "
|
"Anatomy template. Please, add it there and restart "
|
||||||
"the pipeline (padding: \"4\"): `{}`".format(e)
|
"the pipeline (padding: \"4\"): `{}`").format(e)
|
||||||
|
|
||||||
log.error(msg)
|
log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
@ -770,11 +771,11 @@ class WorkfileSettings(object):
|
||||||
}
|
}
|
||||||
|
|
||||||
if any(x for x in data.values() if x is None):
|
if any(x for x in data.values() if x is None):
|
||||||
msg = "Missing set shot attributes in DB."
|
msg = ("Missing set shot attributes in DB."
|
||||||
"\nContact your supervisor!."
|
"\nContact your supervisor!."
|
||||||
"\n\nWidth: `{width}`"
|
"\n\nWidth: `{width}`"
|
||||||
"\nHeight: `{height}`"
|
"\nHeight: `{height}`"
|
||||||
"\nPixel Asspect: `{pixel_aspect}`".format(**data)
|
"\nPixel Asspect: `{pixel_aspect}`").format(**data)
|
||||||
log.error(msg)
|
log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
@ -793,8 +794,8 @@ class WorkfileSettings(object):
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
bbox = None
|
bbox = None
|
||||||
msg = "{}: {} \nFormat:Crop need to be set with dots, example: "
|
msg = ("{}:{} \nFormat:Crop need to be set with dots, example: "
|
||||||
"0.0.1920.1080, /nSetting to default".format(__name__, e)
|
"0.0.1920.1080, /nSetting to default").format(__name__, e)
|
||||||
log.error(msg)
|
log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ class CreateGizmo(Creator):
|
||||||
node["tile_color"].setValue(int(self.node_color, 16))
|
node["tile_color"].setValue(int(self.node_color, 16))
|
||||||
return anlib.imprint(node, self.data)
|
return anlib.imprint(node, self.data)
|
||||||
else:
|
else:
|
||||||
msg = "Please select a group node "
|
msg = ("Please select a group node "
|
||||||
"you wish to publish as the gizmo"
|
"you wish to publish as the gizmo")
|
||||||
self.log.error(msg)
|
self.log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
@ -60,8 +60,8 @@ class CreateGizmo(Creator):
|
||||||
return anlib.imprint(gizmo_node, self.data)
|
return anlib.imprint(gizmo_node, self.data)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
msg = "Please select nodes you "
|
msg = ("Please select nodes you "
|
||||||
"wish to add to the gizmo"
|
"wish to add to the gizmo")
|
||||||
self.log.error(msg)
|
self.log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
return
|
return
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,8 @@ class CreateWriteRender(plugin.PypeCreator):
|
||||||
nodes = self.nodes
|
nodes = self.nodes
|
||||||
|
|
||||||
if not (len(nodes) < 2):
|
if not (len(nodes) < 2):
|
||||||
msg = "Select only one node. The node you want to connect to, "
|
msg = ("Select only one node. The node you want to connect to, "
|
||||||
"or tick off `Use selection`"
|
"or tick off `Use selection`")
|
||||||
log.error(msg)
|
log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
@ -137,8 +137,8 @@ class CreateWritePrerender(plugin.PypeCreator):
|
||||||
nodes = self.nodes
|
nodes = self.nodes
|
||||||
|
|
||||||
if not (len(nodes) < 2):
|
if not (len(nodes) < 2):
|
||||||
msg = "Select only one node. The node you want to connect to, "
|
msg = ("Select only one node. The node you want to connect to, "
|
||||||
"or tick off `Use selection`"
|
"or tick off `Use selection`")
|
||||||
self.log.error(msg)
|
self.log.error(msg)
|
||||||
nuke.message(msg)
|
nuke.message(msg)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class ExtractReviewDataLut(pype.api.Extractor):
|
||||||
with anlib.maintained_selection():
|
with anlib.maintained_selection():
|
||||||
exporter = pnlib.ExporterReviewLut(
|
exporter = pnlib.ExporterReviewLut(
|
||||||
self, instance
|
self, instance
|
||||||
)
|
)
|
||||||
data = exporter.generate_lut()
|
data = exporter.generate_lut()
|
||||||
|
|
||||||
# assign to representations
|
# assign to representations
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue