mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Optional preserve references.
This commit is contained in:
parent
71badb50cc
commit
187b4087ec
2 changed files with 13 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from openpype.hosts.maya.api import plugin
|
||||
from openpype.lib import BoolDef
|
||||
|
||||
|
||||
class CreateMayaScene(plugin.MayaCreator):
|
||||
|
|
@ -9,3 +10,12 @@ class CreateMayaScene(plugin.MayaCreator):
|
|||
label = "Maya Scene"
|
||||
family = "mayaScene"
|
||||
icon = "file-archive-o"
|
||||
|
||||
def get_instance_attr_defs(self):
|
||||
return [
|
||||
BoolDef(
|
||||
"preserve_references",
|
||||
label="Preserve References",
|
||||
default=True
|
||||
)
|
||||
]
|
||||
|
|
|
|||
|
|
@ -70,7 +70,9 @@ class ExtractMayaSceneRaw(publish.Extractor):
|
|||
force=True,
|
||||
typ="mayaAscii" if self.scene_type == "ma" else "mayaBinary", # noqa: E501
|
||||
exportSelected=True,
|
||||
preserveReferences=True,
|
||||
preserveReferences=instance.data.get(
|
||||
"creator_attributes", {}
|
||||
).get("preserve_references", True),
|
||||
constructionHistory=True,
|
||||
shader=True,
|
||||
constraints=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue