Skip to content

Commit

Permalink
Merge pull request #4025 from Autodesk/bailp/EMSUSD-0/AE-extra-attrs
Browse files Browse the repository at this point in the history
Fix AE extra attribute section.
  • Loading branch information
seando-adsk authored Dec 3, 2024
2 parents 31dc37c + 94650a9 commit 0dd5c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mayaUsd/resources/ae/usdschemabase/ae_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ def addControls(self, attrNames):
createdControl = controlCreator(self, attrName)
if createdControl:
self.defineCustom(createdControl, attrName)
self.addedAttrs.add(attrName)
break
except Exception as ex:
# Do not let one custom control failure affect others.
print('Failed to create control %s: %s' % (attrName, ex))
self.addedAttrs.add(attrName)

def suppress(self, attrName):
cmds.editorTemplate(suppress=attrName)
Expand Down Expand Up @@ -491,7 +491,7 @@ def createCustomExtraAttrs(self, sectionName, attrs, collapse):
# long as the suppressed attributes are suppressed by suppress(self, control).
# This function will keep all suppressed attributes into a list which will be use
# by addControls(). So any suppressed attributes in extraAttrs will be ignored later.
extraAttrs = [attr for attr in self.attrS.attributeNames if attr not in self.addedAttrs]
extraAttrs = [attr for attr in self.attrS.attributeNames if attr not in self.addedAttrs and attr not in self.suppressedAttrs]
sectionName = mel.eval("uiRes(\"s_TPStemplateStrings.rExtraAttributes\");")
self.createSection(sectionName, extraAttrs, collapse)

Expand Down

0 comments on commit 0dd5c4d

Please sign in to comment.