Skip to content

Commit

Permalink
verify that 'family' attributes exists and equals to 'render'
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Fricard committed May 24, 2023
1 parent 3a57274 commit 2379c5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openpype/hosts/maya/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -3136,7 +3136,8 @@ def update_instances_frame_range():

for instance in collected_instances:
family_attr = "{}.family".format(instance)
if family_attr == "render":
if (cmds.attributeQuery('family', node=instance, exists=True) and
cmds.getAttr(family_attr) == "render"):
continue

id_attr = "{}.id".format(instance)
Expand Down

0 comments on commit 2379c5c

Please sign in to comment.