syntax fixes

This commit is contained in:
Milan Kolar 2020-01-29 00:50:58 +01:00
parent 873385e9a4
commit 837807d535
4 changed files with 16 additions and 15 deletions

View file

@ -180,9 +180,10 @@ def format_anatomy(data):
try:
padding = int(anatomy.templates['render']['padding'])
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 "
"the pipeline (padding: \"4\"): `{}`".format(e)
"the pipeline (padding: \"4\"): `{}`").format(e)
log.error(msg)
nuke.message(msg)
@ -770,11 +771,11 @@ class WorkfileSettings(object):
}
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!."
"\n\nWidth: `{width}`"
"\nHeight: `{height}`"
"\nPixel Asspect: `{pixel_aspect}`".format(**data)
"\nPixel Asspect: `{pixel_aspect}`").format(**data)
log.error(msg)
nuke.message(msg)
@ -793,8 +794,8 @@ class WorkfileSettings(object):
)
except Exception as e:
bbox = None
msg = "{}: {} \nFormat:Crop need to be set with dots, example: "
"0.0.1920.1080, /nSetting to default".format(__name__, e)
msg = ("{}:{} \nFormat:Crop need to be set with dots, example: "
"0.0.1920.1080, /nSetting to default").format(__name__, e)
log.error(msg)
nuke.message(msg)

View file

@ -36,8 +36,8 @@ class CreateGizmo(Creator):
node["tile_color"].setValue(int(self.node_color, 16))
return anlib.imprint(node, self.data)
else:
msg = "Please select a group node "
"you wish to publish as the gizmo"
msg = ("Please select a group node "
"you wish to publish as the gizmo")
self.log.error(msg)
nuke.message(msg)
@ -60,8 +60,8 @@ class CreateGizmo(Creator):
return anlib.imprint(gizmo_node, self.data)
else:
msg = "Please select nodes you "
"wish to add to the gizmo"
msg = ("Please select nodes you "
"wish to add to the gizmo")
self.log.error(msg)
nuke.message(msg)
return

View file

@ -42,8 +42,8 @@ class CreateWriteRender(plugin.PypeCreator):
nodes = self.nodes
if not (len(nodes) < 2):
msg = "Select only one node. The node you want to connect to, "
"or tick off `Use selection`"
msg = ("Select only one node. The node you want to connect to, "
"or tick off `Use selection`")
log.error(msg)
nuke.message(msg)
@ -137,8 +137,8 @@ class CreateWritePrerender(plugin.PypeCreator):
nodes = self.nodes
if not (len(nodes) < 2):
msg = "Select only one node. The node you want to connect to, "
"or tick off `Use selection`"
msg = ("Select only one node. The node you want to connect to, "
"or tick off `Use selection`")
self.log.error(msg)
nuke.message(msg)

View file

@ -41,7 +41,7 @@ class ExtractReviewDataLut(pype.api.Extractor):
with anlib.maintained_selection():
exporter = pnlib.ExporterReviewLut(
self, instance
)
)
data = exporter.generate_lut()
# assign to representations