gameboy12615 / mmd4maya Goto Github PK
View Code? Open in Web Editor NEWImport pmx/pmd model to maya.
Import pmx/pmd model to maya.
// Error: file: F:/Apply/Maya/Maya2022/scripts/others/pluginWin.mel line 316: ModuleNotFoundError: file F:\Apply\Maya\Maya2022\Python37\lib\site-packages\shiboken2\files.dir\shibokensupport_feature_.py line 142: No module named 'pymel' //
// Warring: file: F:/Apply/Maya/Maya2022/scripts/others/pluginWin.mel line 316: Failed to run file: F:/Apply/Maya/Maya2022/bin/plug-ins/MMD4Maya.py //
// Error: file: F:/Apply/Maya/Maya2022/scripts/others/pluginWin.mel line 316: (MMD4Maya) //
What do I need to do?
Ver:Maya2022
I am using Maya 2018. Does this work with 2018? Because I am having an issue.
I installed the plugin as per instructions, putting the one file and the one folder into the plus-ins folder of Maya. When I open the plugin manager in Maya, I do see "MMD4Maya.py" in the list.
But, I cannot check the "Loaded" box in Plug-In Manager to load the plugin. Maya immediately unckecks the box and throws the following error:
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 290: ImportError: file C:/Program Files/Autodesk/Maya2018/bin/plug-ins\MMD4Maya\Scripts\UI\ExplorerWindow.py line 1: No module named PySide //
And When I click the checkbox again, it only throws these errors every time:
// Warning: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 290: Failed to run file: C:/Program Files/Autodesk/Maya2018/bin/plug-ins/MMD4Maya.py //
// Error: file: C:/Program Files/Autodesk/Maya2018/scripts/others/pluginWin.mel line 290: (MMD4Maya) //
Do you know why this is? Is this plugin broken?
Thank you and please help.
EDIT: I also tried this in Maya 2017, and got a problem at the same point - when I try to check the checkbox, it gives the following errors:
// Error: line 1: ImportError: file C:/Program Files/Autodesk/Maya2017/bin/plug-ins\MMD4Maya\Scripts\UI\ExplorerWindow.py line 1: No module named PySide //
// Warning: line 1: Failed to run file: C:/Program Files/Autodesk/Maya2017/bin/plug-ins/MMD4Maya.py //
// Error: line 1: (MMD4Maya) //
Any help is appreciated.
I use maya 2019, and install the 2017 version mmd4maya. However, when I click 'Process', there comes a error: AttributeError: 'MainWindow' object has no attribute 'fbxFilePath'.
Hi
I used MMD4Maya 2017 and I could export my mmd
The problem is it didn't contain facial expression
Thank you for your hard work
whenever I import pmd/pmx files to maya, the IK Handles went missing and messed up the vmd and the animation itself. what do i do? please help :'(
你在使用过程中大概率可能会遇到如下报错:
# # Exception in thread MMD4MayaProcessor:
# Traceback (most recent call last):
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\UI\MainWindow.py", line 191, in AsyncProcess
# self.fbxFilePath = self.__converter.Process(self.__pmxFile, self.__vmdFileList)
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\FBXConverter.py", line 38, in Process
# arguments += ConvertToUnixPath(vmdFile)
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\Utils.py", line 6, in ConvertToUnixPath
# return path.replace("\\", "/")
# TypeError: a bytes-like object is required, not 'str'
#
# During handling of the above exception, another exception occurred:
#
# Traceback (most recent call last):
# File "C:\Program Files\Autodesk\Maya2022\Python37\lib\threading.py", line 926, in _bootstrap_inner
# self.run()
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\UI\MainWindow.py", line 26, in run
# self.mainWindow.AsyncProcess()
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\UI\MainWindow.py", line 201, in AsyncProcess
# self.CleanTempFiles()
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\UI\MainWindow.py", line 182, in CleanTempFiles
# bytesFile = GetDirFormFilePath(vmdFile) + GetFileNameFromFilePath(vmdFile) + '.anim.bytes'
# File "C:/Program Files/Autodesk/Maya2022/bin/plug-ins\MMD4Maya\Scripts\Utils.py", line 19, in GetDirFormFilePath
# nPos = filePath.rfind('/')
TypeError: argument should be integer or bytes-like object, not 'str'
主要有三个问题,解决方法就是简单修改这三个函数而已。
问题1: 在 ConvertToUnixPath 函数中,你需要确保提供给该函数的 path 变量是一个字符串,而不是一个字节样式的对象。如果确实是一个字节样式的对象,你需要先将其解码为字符串。
def ConvertToUnixPath(path):
if isinstance(path, bytes):
path = path.decode('utf-8')
return path.replace("\\", "/")
问题2: 在 GetDirFormFilePath 函数中,当调用 rfind 方法时,确保 filePath 是字符串。如果 filePath 是字节样式对象,你需要先解码。
def GetDirFormFilePath(filePath = ""):
if isinstance(filePath, bytes):
filePath = filePath.decode('utf-8')
nPos = filePath.rfind('/')
return filePath[0:nPos+1]
问题3:在 GetFileNameFromFilePath 函数中遇到了同样的问题。具体地说,filePath.rfind('/') 方法调用期望一个整数或字节样式对象作为参数,但是你传递的是一个字符串。
def GetFileNameFromFilePath(filePath=""):
if isinstance(filePath, bytes):
filePath = filePath.decode('utf-8')
nPos = filePath.rfind('/')
return filePath[nPos+1:filePath.rfind('.')]
实际测试支持Maya2022以及2024,理论上2023也是支持的,电脑没安装。
只要官方不更新Python的Pyside和PyMel,应该可以用到2030吧(手动狗头)。
修改完成后重启Maya,这样插件才能够刷新。
如果你觉得修改比较麻烦,可以直接下载我已经修改好之后二次打包的。
https://www.123pan.com/s/sKd9-H3wc.html
如果有BUG,可以来找我修一下,微信yufeng57
如果方便,给我来一杯雪顶咖啡,Cheers。
Please update MMD4Maya script for maya 2017 if it's not too hard to do
The new branch for Maya2022 can't combine pmd and vmd files.
I can import a pmd file. However, when I try to add both pmd and vmd files, the program can't run.
PMX2FBX source code, the buildable version is not work any more
file: C:/Program Files/Autodesk/Maya2023/scripts/others/pluginWin.mel line 316: ModuleNotFoundError: file C:\Program Files/Autodesk/Maya2023/bin/plug-ins\MMD4Maya\Scripts\UI\ExplorerWindow.py line 4: No module named 'pymel'
file: C:/Program Files/Autodesk/Maya2023/scripts/others/pluginWin.mel line 316: Failed to run file: C:/Program Files/Autodesk/Maya2023/bin/plug-ins/MMD4Maya.py
file: C:/Program Files/Autodesk/Maya2023/scripts/others/pluginWin.mel line 316: (MMD4Maya)
不知道自动桌又整了啥
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.