Skip to content

Commit

Permalink
RBF manager 2.0 add option to export only current Setup
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Nov 7, 2024
1 parent 4f0b7ad commit 8019f89
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions release/scripts/mgear/rigbits/rbf_manager2/rbf_manager_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1701,8 +1701,9 @@ def mirrorSetup(self):
anim_utils.mirrorPose(flip=False, nodes=[driverControl])
mrData = []
for srcNode, dstValues in setupTargetInfo_dict.items():
mrData.extend(anim_utils.calculateMirrorData(srcNode,
dstValues[0]))
mrData.extend(
anim_utils.calculateMirrorData(srcNode, dstValues[0])
)

for entry in mrData:
anim_utils.applyMirror(nameSpace, entry)
Expand Down Expand Up @@ -1910,7 +1911,11 @@ def createMenuBar(self, hideMenuBar=False):
menu1.setToolTip("Force all RBF nodes to re-revaluate.")
file.addSeparator()
file.addAction("Import RBFs", partial(self.menuFunc.importNodes))
file.addAction("Export RBFs", self.menuFunc.exportNodes)
file.addAction("Export ALL RBFs", self.menuFunc.exportNodes)
file.addAction(
"Export Current Setup RBFs",
partial(self.menuFunc.exportNodes, allSetups=False),
)
file.addSeparator()
file.addAction(
"Delete Current Setup",
Expand Down

0 comments on commit 8019f89

Please sign in to comment.