mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-27 14:22:37 +01:00
🐛 fix HDA creation
This commit is contained in:
parent
c27f4cbbf4
commit
5b154d7a19
2 changed files with 3 additions and 5 deletions
|
|
@ -43,7 +43,7 @@ class CreateHDA(plugin.HoudiniCreator):
|
|||
# if we have `use selection` enabled, and we have some
|
||||
# selected nodes ...
|
||||
subnet = parent_node.collapseIntoSubnet(
|
||||
self._nodes,
|
||||
self.selected_nodes,
|
||||
subnet_name="{}_subnet".format(node_name))
|
||||
subnet.moveToGoodPosition()
|
||||
to_hda = subnet
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import os
|
||||
|
||||
from pprint import pformat
|
||||
|
||||
import pyblish.api
|
||||
|
||||
from openpype.pipeline import publish
|
||||
import hou
|
||||
|
||||
|
||||
class ExtractHDA(publish.Extractor):
|
||||
|
|
@ -17,7 +15,7 @@ class ExtractHDA(publish.Extractor):
|
|||
|
||||
def process(self, instance):
|
||||
self.log.info(pformat(instance.data))
|
||||
hda_node = instance.data.get("members")[0]
|
||||
hda_node = hou.node(instance.data.get("instance_node"))
|
||||
hda_def = hda_node.type().definition()
|
||||
hda_options = hda_def.options()
|
||||
hda_options.setSaveInitialParmsAndContents(True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue