This commit is contained in:
2025-11-24 01:37:59 +08:00
parent 0eeeb54784
commit 6940f17517
9 changed files with 1659 additions and 6 deletions

View File

@@ -14,27 +14,97 @@ global proc shelf_Nexus_Rigging () {
-manage 1
-visible 1
-preventOverride 0
-annotation "Nexus Test - Verify plugin system"
-annotation "Export Skin Weights - Export skin weights to file"
-enableBackground 0
-backgroundColor 0 0 0
-highlightColor 0.321569 0.521569 0.65098
-align "center"
-label "Test"
-label "Export"
-labelOffset 0
-rotation 0
-flipX 0
-flipY 0
-useAlpha 1
-font "plainLabelFont"
-imageOverlayLabel "Test"
-imageOverlayLabel "Export"
-overlayLabelColor 0.8 0.8 0.8
-overlayLabelBackColor 0 0 0 0.5
-image "commandButton.png"
-image1 "commandButton.png"
-image "skinapi.png"
-image1 "skinapi.png"
-style "iconOnly"
-marginWidth 0
-marginHeight 1
-command "import nexus_test\nnexus_test.run_test()"
-command "from rigging_tools.skin_api import ui\nui.WeightExport()"
-sourceType "python"
-commandRepeatable 1
-flat 1
;
shelfButton
-enableCommandRepeat 1
-flexibleWidthType 3
-flexibleWidthValue 32
-enable 1
-width 35
-height 34
-manage 1
-visible 1
-preventOverride 0
-annotation "Import Skin Weights - Import skin weights from file"
-enableBackground 0
-backgroundColor 0 0 0
-highlightColor 0.321569 0.521569 0.65098
-align "center"
-label "Import"
-labelOffset 0
-rotation 0
-flipX 0
-flipY 0
-useAlpha 1
-font "plainLabelFont"
-imageOverlayLabel "Import"
-overlayLabelColor 0.8 0.8 0.8
-overlayLabelBackColor 0 0 0 0.5
-image "skinapi.png"
-image1 "skinapi.png"
-style "iconOnly"
-marginWidth 0
-marginHeight 1
-command "from rigging_tools.skin_api import ui\nui.WeightImport()"
-sourceType "python"
-commandRepeatable 1
-flat 1
;
shelfButton
-enableCommandRepeat 1
-flexibleWidthType 3
-flexibleWidthValue 32
-enable 1
-width 35
-height 34
-manage 1
-visible 1
-preventOverride 0
-annotation "Unbind Skin - Remove skin cluster from selected objects"
-enableBackground 0
-backgroundColor 0 0 0
-highlightColor 0.321569 0.521569 0.65098
-align "center"
-label "Unbind"
-labelOffset 0
-rotation 0
-flipX 0
-flipY 0
-useAlpha 1
-font "plainLabelFont"
-imageOverlayLabel "Unbind"
-overlayLabelColor 0.8 0.8 0.8
-overlayLabelBackColor 0 0 0 0.5
-image "skinapi.png"
-image1 "skinapi.png"
-style "iconOnly"
-marginWidth 0
-marginHeight 1
-command "from rigging_tools.skin_api import ui\nui.UnbindSkin()"
-sourceType "python"
-commandRepeatable 1
-flat 1