Skip to content

Commit

Permalink
Rigbits: Bake Spring nodes move command to animbits menu closes mgear…
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelcampos committed Sep 6, 2023
1 parent 760ede7 commit 07ed74c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
18 changes: 15 additions & 3 deletions release/scripts/mgear/animbits/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@


def install():
"""Install Skinning submenu
"""
"""Install Skinning submenu"""
commands = (
("Channel Master", str_openChannelMaster),
("-----", None),
Expand All @@ -12,7 +11,10 @@ def install():
("-----", None),
("Space Recorder", str_space_recorder, "mgear_key.svg"),
("-----", None),
("Smart Reset Attribute/SRT", str_smart_reset)
("Smart Reset Attribute/SRT", str_smart_reset),
("-----", None),
("Bake Spring nodes", str_bakeSprings),
("Clear Baked Spring nodes", str_clearSprings),
)

mgear.menu.install("Animbits", commands, image="mgear_animbits.svg")
Expand Down Expand Up @@ -42,3 +44,13 @@ def install():
from mgear.animbits import space_recorder
space_recorder.open()
"""

str_bakeSprings = """
from mgear.core.anim_utils import bakeSprings
bakeSprings()
"""

str_clearSprings = """
from mgear.core.anim_utils import clearSprings
clearSprings()
"""
15 changes: 0 additions & 15 deletions release/scripts/mgear/rigbits/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ def install():
("Proxy Geo", str_proxyGeo, "mgear_proxyGeo_to_next.svg"),
("Proxy Slicer", str_proxySlicer),
("Proxy Slicer Parenting", str_proxySlicer_parent),
("-----", None),
("Bake Spring nodes", str_bakeSprings),
("Clear Baked Spring nodes", str_clearSprings),
)

mgear.menu.install(menuID, commands, image="mgear_rigbits.svg")
Expand Down Expand Up @@ -243,18 +240,6 @@ def install_utils_menu(m):
proxySlicer.slice(True)
"""


str_bakeSprings = """
from mgear.core.anim_utils import bakeSprings
bakeSprings()
"""

str_clearSprings = """
from mgear.core.anim_utils import clearSprings
clearSprings()
"""


# connect str commands

str_connect_SRT = """
Expand Down

0 comments on commit 07ed74c

Please sign in to comment.