Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/choi-jungwoo/maya-poly-noise-rs

Using Rust In Maya Example
https://github.com/choi-jungwoo/maya-poly-noise-rs

maya-api python27 rust

Last synced: 25 days ago
JSON representation

Using Rust In Maya Example

Awesome Lists containing this project

README

        

# Maya PolyNoise
Using Rust In Maya Example
> ```Python API``` => ```Rust``` => ```Python API```

## Benchmark
- Python: 0.6s
- Rust: 0.04s
- C++: 0.04s

## Require
- Rust >= 1.49
- Maya >= 2016
- Python2.7 include && libs
- pip
### MayaPy Install Pip
- Download: ```https://raw.githubusercontent.com/pypa/get-pip/master/2.7/get-pip.py```
- Run: ```mayapy get-pip.py```

## Install (Use Administrator Mod)
### Set PYTHON_SYS_EXECUTABLE
```shell
$env:PYTHON_SYS_EXECUTABLE="YOUR_MAYA_PATH\bin\mayapy.exe"
```
First ```clone``` the code and then ```cd``` it into the code directory.
```shell
mayapy -m pip install -r requirements.txt;mayapy setup.py install
```

## Run!!!
```python
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)
```