From 8019f894bd808f262057c37bd8dfa1bd0e20d453 Mon Sep 17 00:00:00 2001 From: miquelcampos Date: Thu, 7 Nov 2024 13:53:58 +0900 Subject: [PATCH] RBF manager 2.0 add option to export only current Setup --- .../mgear/rigbits/rbf_manager2/rbf_manager_ui.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/release/scripts/mgear/rigbits/rbf_manager2/rbf_manager_ui.py b/release/scripts/mgear/rigbits/rbf_manager2/rbf_manager_ui.py index 65b05bd8..8ac95e57 100644 --- a/release/scripts/mgear/rigbits/rbf_manager2/rbf_manager_ui.py +++ b/release/scripts/mgear/rigbits/rbf_manager2/rbf_manager_ui.py @@ -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) @@ -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",