mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update openpype/hosts/maya/api/workfile_template_builder.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
7739c3a54f
commit
035c888d9b
1 changed files with 3 additions and 2 deletions
|
|
@ -50,6 +50,7 @@ class MayaTemplateBuilder(AbstractTemplateBuilder):
|
|||
return True
|
||||
|
||||
# update imported sets information
|
||||
asset_name = get_current_asset_name()
|
||||
for node in imported_sets:
|
||||
if not cmds.attributeQuery("id", node=node, exists=True):
|
||||
continue
|
||||
|
|
@ -57,9 +58,9 @@ class MayaTemplateBuilder(AbstractTemplateBuilder):
|
|||
continue
|
||||
if not cmds.attributeQuery("asset", node=node, exists=True):
|
||||
continue
|
||||
asset = legacy_io.Session["AVALON_ASSET"]
|
||||
|
||||
cmds.setAttr("{}.asset".format(node), asset, type="string")
|
||||
cmds.setAttr(
|
||||
"{}.asset".format(node), asset_name, type="string")
|
||||
|
||||
return True
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue