Skip to content

Commit

Permalink
Merge branch 'develop' into enhancement/alembic_exclude_parent_hierar…
Browse files Browse the repository at this point in the history
…chy_validate_parent_isbility
  • Loading branch information
BigRoy authored Sep 23, 2024
2 parents 00579a4 + 74c0358 commit 34f7b00
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
6 changes: 4 additions & 2 deletions client/ayon_maya/plugins/create/create_multishot_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,10 @@ def create(self, product_name, instance_data, pre_create_data):
layout_task_name = pre_create_data["taskName"]
layout_task_entity = task_entities[layout_task_name]

shot_name = f"{shot['name']}%s" % (
f" ({shot['label']})" if shot["label"] else "")
shot_name = shot['name']
if shot["label"] and shot["label"] != shot_name:
shot_name += f" ({shot['label']})"

cmds.shot(sequenceStartTime=shot["attrib"]["clipIn"],
sequenceEndTime=shot["attrib"]["clipOut"],
shotName=shot_name)
Expand Down
6 changes: 5 additions & 1 deletion client/ayon_maya/plugins/publish/collect_look.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,12 @@ def collect_member_data(self, member, instance_members):
dict
"""

node, components = (member.rsplit(".", 1) + [None])[:2]
if components and not cmds.objectType(node, isAType="shape"):
# Components are always on shapes. When only a single shape is
# parented under a transform Maya returns it as e.g. `cube.f[0:4]`
# instead of `cubeShape.f[0:4]` so we expand that to the shape
node = cmds.listRelatives(node, shapes=True, fullPath=True)[0]

# Only include valid members of the instance
if node not in instance_members:
Expand Down
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 34f7b00

Please sign in to comment.