add options

This commit is contained in:
Seyedmohammadreza Hashemizadeh 2023-05-12 16:21:58 +02:00
parent 592d0ac908
commit 9d6cd8d2c8
2 changed files with 3 additions and 3 deletions

View file

@ -3937,7 +3937,7 @@ def get_capture_preset(task_name, task_type, subset, project_settings, log):
return capture_preset or {}
def create_rig_animation_instance(nodes, context, namespace, log=None):
def create_rig_animation_instance(nodes, context, namespace, options, log=None):
"""Create an animation publish instance for loaded rigs.
See the RecreateRigAnimationInstance inventory action on how to use this
@ -3982,6 +3982,6 @@ def create_rig_animation_instance(nodes, context, namespace, log=None):
creator_plugin,
name=namespace,
asset=asset,
options={"useSelection": True},
options=options.update({"useSelection": True}),
data={"dependencies": dependency}
)

View file

@ -223,7 +223,7 @@ class ReferenceLoader(openpype.hosts.maya.api.plugin.ReferenceLoader):
def _post_process_rig(self, name, namespace, context, options):
nodes = self[:]
create_rig_animation_instance(
nodes, context, namespace, log=self.log
nodes, context, namespace, options, log=self.log
)
def _lock_camera_transforms(self, nodes):