Code Monkey home page Code Monkey logo

mmd4maya's People

Contributors

gameboy12615 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmd4maya's Issues

无法导入动画的解决方法

你在使用过程中大概率可能会遇到如下报错:

# # 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。
WechatIMG783

IK Handles

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 :'(

Colorless, Warning : Skin Definition (1)

please, can u solve it? i try using Pmx or Pmd files, this always happend to me, Im really happy if you want to help me, im new with Maya, but i've checked all files like material already imported.

image

Cannot Check "Loaded" box in Plug-In Manager

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.

error plugin load:line 316 for maya 2023

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)

不知道自动桌又整了啥

Problem of MMD4Maya2022

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.

Maya Run Plug Error

// 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

Facial Expression

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.