Nuke: Add option to use new creating system in workfile template builder (#4545)

* added option to use new creating system in workfile template builder

* fix spaces

* use 'create' method on create context to trigger creation

* fix attribute access

* adding headless to creators and workfile builder abstraction

* adding noqa for hound

* hound

---------

Co-authored-by: Jakub Jezek <jakubjezek001@gmail.com>
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
This commit is contained in:
Jakub Trllo 2023-03-06 18:34:56 +01:00 committed by GitHub
parent f5ef4597b2
commit de50783c04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 81 additions and 30 deletions

View file

@ -22,6 +22,8 @@ PLACEHOLDER_SET = "PLACEHOLDERS_SET"
class MayaTemplateBuilder(AbstractTemplateBuilder):
"""Concrete implementation of AbstractTemplateBuilder for maya"""
use_legacy_creators = True
def import_template(self, path):
"""Import template into current scene.
Block if a template is already loaded.