Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/choi-jungwoo/maya-poly-noise-rs
- Owner: Choi-Jungwoo
- Created: 2021-02-03T02:51:58.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-14T09:44:00.000Z (over 3 years ago)
- Last Synced: 2024-10-12T09:20:13.020Z (25 days ago)
- Topics: maya-api, python27, rust
- Language: Rust
- Homepage:
- Size: 3.91 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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_noisesphere = cmds.polySphere(radius=1, subdivisionsX=200, subdivisionsY=200)
poly_noise(sphere[0], 100)
```