Using Rust In Maya Example
Python API
=>Rust
=>Python API
- Python: 0.6s
- Rust: 0.04s
- C++: 0.04s
- Rust >= 1.49
- Maya >= 2016
- Python2.7 include && libs
- pip
- Download:
https://raw.githubusercontent.com/pypa/get-pip/master/2.7/get-pip.py
- Run:
mayapy get-pip.py
$env:PYTHON_SYS_EXECUTABLE="YOUR_MAYA_PATH\bin\mayapy.exe"
First clone
the code and then cd
it into the code directory.
mayapy -m pip install -r requirements.txt;mayapy setup.py install
import maya.cmds as cmds
from maya_poly_noise import poly_noise
sphere = cmds.polySphere(radius=1, subdivisionsX=200, subdivisionsY=200)
poly_noise(sphere[0], 100)