mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 06:12:19 +01:00
Set nice pyblish instance name with frame range in Pyblish
This commit is contained in:
parent
774ff4bf0d
commit
bc48a8df2b
1 changed files with 6 additions and 1 deletions
|
|
@ -103,7 +103,12 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin):
|
|||
overrides = self.parse_options(render_globals)
|
||||
data.update(**overrides)
|
||||
|
||||
instance = context.create_instance(layername)
|
||||
# Define nice label
|
||||
label = "{0} ({1})".format(layername, data["asset"])
|
||||
label += " [{0}-{1}]".format(int(data["startFrame"]),
|
||||
int(data["endFrame"]))
|
||||
|
||||
instance = context.create_instance(label)
|
||||
instance.data.update(data)
|
||||
|
||||
def get_render_attribute(self, attr):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue