Skip to content

Commit

Permalink
Merge pull request #108 from BigRoy/enhancement/alembic_exclude_hiera…
Browse files Browse the repository at this point in the history
…rchy_ignore_children

Alembic exports: Fix parenting/ancestor relationship errors when include parent hierarchy is off
  • Loading branch information
BigRoy authored Sep 23, 2024
2 parents ceb4de1 + 0183c70 commit 74c0358
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/ayon_maya/plugins/publish/extract_pointcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
from ayon_maya.api.alembic import extract_alembic
from ayon_maya.api.lib import (
get_all_children,
get_highest_in_hierarchy,
iter_visible_nodes_in_range,
maintained_selection,
suspended_refresh,
Expand Down Expand Up @@ -129,7 +130,10 @@ def process(self, instance):
# Set the root nodes if we don't want to include parents
# The roots are to be considered the ones that are the actual
# direct members of the set
root = roots
# We ignore members that are children of other members to avoid
# the parenting / ancestor relationship error on export and assume
# the user intended to export starting at the top of the two.
root = get_highest_in_hierarchy(roots)

kwargs = {
"file": path,
Expand Down

0 comments on commit 74c0358

Please sign in to comment.