← Blender.Today
  • Published 5 Jul 2021

mybpy: Let Maya accepts Blender dropping file

mybpy new version (1.04) has this new function. It can let Maya accepts Blender dropping file, imports blender objects to maya directly.

You only need to do :

  1. download new version (1.04) mybpy from

    github.com/cn2000bd/mybpy

    or Baidu Cloud ( pan.baidu.com/s/1lWWFsxZ4_7tTxTuYmi2z2A )

  2. save new ' m.py ' file to 'D:\mybpy\ m.py '

3.run the following mybpy script in Blender Scripting Text Editor (Alt+P) :

#---------------------------------------------------------------------

import sys;sys.path.append(r'd:\mybpy')

import importlib as imp;import m;imp.reload(m);from m import *

mayaDropBlend()

#__________________________________________

That's it! Done!

Above three lines of codes need run one time only, it will let maya add user self-definated MEL scripts on its DropFileAction in C:\users\administrator\documents\maya\scripts

(It's safe and has no possiblility to destroy any functions of Maya itself)

Now you can try! Just drag a blend file to Maya, It will be accepted and import to Maya directly.

So Easy!!!!!!

If you want clear this function you only need to run:

#---------------------------------------------------------------------

import sys;sys.path.append(r'd:\mybpy')

import importlib as imp;import m;imp.reload(m);from m import *

mayaDropBlend(0)

#__________________________________________

That's it . Just add 0 in the arguments of function 'mayaDropBlend()'

or you goto 'C:\users\administrator\documents\maya\scripts' folder to delete user self-def MEL scripts File "performFileDropAction.mel"

(So, You don't need to worry Destroying any function of Maya. Just Delete this user-self-def MEL file, Everything will recover)

Besides,It's also has new function of accepting Image file drop to the model in Maya:

You can select one Model in Maya, and drag PNG or JPG file to the Model , It will paste to the model directly in Maya

Aslo Can surport Drop HDR File:

Be Sure no models be selected in Maya. You drag HDR file to the Blank Area of Maya 3DView Window. It will create a sphere of envirement with HDR file automatically.

So Easy to Add envirement in Maya!!!

Hope you like mybpy and enjoy It!!!

--------------------More Information---------------------------

Please download and try mybpy. Your comment will be highly appreciated.

The codes download github address: (updated new version: 1.04 )

github.com/cn2000bd/mybpy

Blender.Today 's Posts on mybpy before:

1.mybpy: an easy way to scripting make Blender stronger

blender.community/c/today/pzoQ/

2.mybpy: Easy Modeling

blender.community/c/today/LPGr/

If you are Chinese, please visit the posts in Baidu:

tieba.baidu.com/p/7393914011

There are more information in Chinese introduction.

You also can download full dictories from Baidu Cloud (including history versions dictories and using examples in the future I will provide):

pan.baidu.com/s/1lWWFsxZ4_7tTxTuYmi2z2A

Getting Code : mbpy

Hope get your comments, I 'll develop and update it better...

Best Regards

cn2000 in China. (Email: caonan2000@163.com)

caonan2000
5 Jul 2021