Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix AE extra attribute section. #4025

Merged
merged 1 commit into from
Dec 3, 2024
Merged
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
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