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

[QUAD] Maya ABC Camera extraction: Fix relationship bug #6292

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading