This commit is contained in:
Jeffreytsai1004 2025-01-15 05:30:28 +08:00
parent 0137fd24b6
commit bf627a166b
88 changed files with 1775 additions and 0 deletions

BIN
Icons/Close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Corrective (64).jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

1
Icons/Icons.mb Normal file

File diff suppressed because one or more lines are too long

BIN
Icons/JointButton.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

BIN
Icons/JointButtonH.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 327 B

BIN
Icons/MetaPipeLoading.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
Icons/Title1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Title2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Title3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Toggle.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UI LOGO.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
Icons/UIBODY.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

BIN
Icons/UIButton1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton10.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton10Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton11.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton11Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton12.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton12Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton13.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton13Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton14.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton14Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
Icons/UIButton15.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton15Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton1Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton2Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton3Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
Icons/UIButton4Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton5Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton6Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
Icons/UIButton7Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton8Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButton9.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
Icons/UIButton9Pressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
Icons/UIButtonEmpty.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
Icons/UIButtonEmptySRT.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UICover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

BIN
Icons/UIGEOC.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGEOCPressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 B

BIN
Icons/UIGeoall.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeobody.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeobodyPressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeocartilage.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeocombined.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoeyeEdge.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoeyeLeft.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoeyelashes.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoeyeright.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoeyeshell.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoflipflops.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeohead.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoheadPressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeosaliva.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoteeth.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIGeoteethPressed.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/UIHAND.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
Icons/UIHEAD.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

BIN
Icons/UISettings.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Yup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/Zup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/center.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/freeze.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
Icons/unlock.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

1703
MetaPipeFree24.py Normal file

File diff suppressed because it is too large Load Diff

71
freeInstaller.py Normal file
View File

@ -0,0 +1,71 @@
import os
import shutil
import sys
if getattr(sys, 'frozen', False):
# Running in a bundle (PyInstaller)
source_folder = os.path.dirname(sys.executable)
source_folder = os.path.join(source_folder, "metapipeFree")
else:
# Running in a normal Python environment
source_folder = os.path.dirname(os.path.abspath(__file__))
source_folder_data = os.path.join(source_folder, "data")
source_folder_icons = os.path.join(source_folder, "Icons")
source_folder_scripts = os.path.join(source_folder, "scripts")
destination_folder = "C:/Arts and Spells/Metapipe Free 2.4.0"
destination_folder_data = destination_folder + "/data"
destination_folder_icons = destination_folder + "/Icons"
destination_folder_scripts = "C:/Arts and Spells/Scripts"
def move_files(source_folder, destination_folder):
files = os.listdir(source_folder)
os.makedirs(destination_folder, exist_ok=True)
os.makedirs(destination_folder_scripts, exist_ok=True)
for file_name in files:
source = os.path.join(source_folder, file_name)
destination = os.path.join(destination_folder, file_name)
if os.path.isfile(source): # Check if the item is a file
try:
shutil.copy(source, destination)
except PermissionError as e:
print(f"Permission error: {e}")
# Handle the permission error as needed
def run():
if not source_folder == destination_folder:
try:
os.makedirs(destination_folder, exist_ok=True)
move_files(source_folder, destination_folder)
move_files(source_folder_data, destination_folder_data)
move_files(source_folder_icons, destination_folder_icons)
move_files(source_folder_scripts, destination_folder_scripts)
print("Installation completed successfully.")
except Exception as e:
print(f"An Error occurred: {e}")
else:
print("Installation already completed.")
shelfCH = 0
shelves_folder = os.path.expanduser("~/Documents/maya/2023/prefs/shelves")
if os.path.exists(shelves_folder):
shutil.copy(os.path.join(source_folder, "shelf_MetapipeFree.mel"), shelves_folder)
shelfCH = 1
shelves_folder = os.path.expanduser("~/Documents/maya/2023/zh_CN/prefs/shelves")
if os.path.exists(shelves_folder):
shutil.copy(os.path.join(source_folder, "shelf_MetapipeFree.mel"), shelves_folder)
shelfCH = 1
shelves_folder = os.path.expanduser("~/Documents/maya/2023/ja_JP/prefs/shelves")
if os.path.exists(shelves_folder):
shutil.copy(os.path.join(source_folder, "shelf_MetapipeFree.mel"), shelves_folder)
shelfCH = 1
shelves_folder = os.path.expanduser("~/Documents/maya/2023/en_US/prefs/shelves")
if os.path.exists(shelves_folder):
shutil.copy(os.path.join(source_folder, "shelf_MetapipeFree.mel"), shelves_folder)
shelfCH = 1
if shelfCH == 0:
print("ERROR: Maya folder is not in Default Place. Please find shelf folder of Maya and copy and paste 'shelf_MetaPipeFree' file manually.")