Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Maya ABC Camera extraction: Fix relationship bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSouchet committed Sep 11, 2024
1 parent d9731d0 commit 7d25a26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def process(self, instance):
transform = cmds.listRelatives(
member, parent=True, fullPath=True)
transform = transform[0] if transform else member
job_str += ' -root {0}'.format(transform)
if transform not in camera_root:
job_str += ' -root {0}'.format(transform)

job_str += ' -file "{0}"'.format(path)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def process(self, instance):
# get cameras
members = set(cmds.ls(instance.data['setMembers'], leaf=True,
shapes=True, long=True, dag=True))
cameras = set(cmds.ls(members, leaf=True, shapes=True, long=True,
cameras = set(cmds.ls(members, shapes=True, long=True,
dag=True, type="camera"))

# validate required settings
Expand Down

0 comments on commit 7d25a26

Please sign in to comment.